diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 6e2611c..d8d1fc2 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -1,5 +1,9 @@ -name: Publish python package to pypi and testpypi -on: push +name: Publish release packages +on: + push: + tags: + - v* + jobs: build: name: Build distribution @@ -26,6 +30,7 @@ jobs: publish-to-testpypi: name: Test publishing to testpypi runs-on: ubuntu-latest + if: startsWith(github.ref, 'refs/tags/') needs: - build environment: @@ -68,13 +73,23 @@ jobs: name: Create github release runs-on: ubuntu-latest if: startsWith(github.ref, 'refs/tags/') + needs: + - build permissions: contents: write steps: - uses: actions/checkout@v4 - - uses: taiki-e/create-gh-release-action@v1 + - name: Grab dist files + uses: actions/download-artifact@v4 + with: + name: python-package-distributions + path: dist/ + - name: Generate release + uses: taiki-e/create-gh-release-action@v1 with: changelog: CHANGELOG.md token: ${{ secrets.GITHUB_TOKEN }} - draft: true - branch: main + - name: Attach files to release + uses: softprops/action-gh-release@v2 + with: + files: dist/* diff --git a/CHANGELOG.md b/CHANGELOG.md index af98f6b..ea00713 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [0.2.0] - 2025-04-09 + ### Added - Place notes into `notes` subdirectory of taskwarrior data directory by default diff --git a/pyproject.toml b/pyproject.toml index 2374df0..2fac9be 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,13 +1,18 @@ [project] name = "topen" -version = "0.1.0" -description = "Quickly edit notes for your taskwarrior tasks" +version = "0.2.0" +description = "simple taskwarrior note management" readme = "README.md" requires-python = ">=3.13" dependencies = [ "tasklib>=2.5.1", ] +[project.urls] +Documentation = "https://marty-oehme.github.io/topen" +Repository = "https://github.com/marty-oehme/topen" +Changelog = "https://github.com/marty-oehme/topen/blob/main/CHANGELOG.md" + [tool.uv] package = true