From a263e3ddb090997b8c151f463bed4ccd8d27d72f Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Wed, 9 Apr 2025 11:41:36 +0200 Subject: [PATCH 1/7] fix: Require build job before releasing --- .github/workflows/release.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 6e2611c..8d6d59f 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -68,6 +68,8 @@ jobs: name: Create github release runs-on: ubuntu-latest if: startsWith(github.ref, 'refs/tags/') + needs: + - build permissions: contents: write steps: From f9e4b054329dda2722ead79d89e897414d2dd642 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Wed, 9 Apr 2025 11:41:36 +0200 Subject: [PATCH 2/7] chore: Only run release on main branch and version tag pushes --- .github/workflows/release.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 8d6d59f..5f1c20f 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -1,5 +1,11 @@ name: Publish python package to pypi and testpypi -on: push +on: + push: + branches: + - main + tags: + - v* + jobs: build: name: Build distribution From f20dd14c6f1e8402726b93f9c2dd91c6603cde29 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Wed, 9 Apr 2025 11:56:42 +0200 Subject: [PATCH 3/7] chore: Rename release workflow --- .github/workflows/release.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 5f1c20f..c5a192e 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -1,4 +1,4 @@ -name: Publish python package to pypi and testpypi +name: Publish release packages on: push: branches: From fb88316bc4f0bd4b79667cd6595aedf906779899 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Wed, 9 Apr 2025 11:59:44 +0200 Subject: [PATCH 4/7] feat: Bump version --- .github/workflows/release.yaml | 1 - CHANGELOG.md | 2 ++ pyproject.toml | 9 +++++++-- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index c5a192e..8e43a56 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -85,4 +85,3 @@ jobs: changelog: CHANGELOG.md token: ${{ secrets.GITHUB_TOKEN }} draft: true - branch: main 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 From 7673770dbd9857b9881352e2e794e146c8d52bc6 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Wed, 9 Apr 2025 12:20:51 +0200 Subject: [PATCH 5/7] fix: Attach distribution files to github release --- .github/workflows/release.yaml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 8e43a56..60d5904 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -80,8 +80,18 @@ jobs: 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 + - name: Attach files to release + uses: softprops/action-gh-release@v2 + with: + files: dist/* From 2b37f24790bc0b979f99c3f8a9595dd9575c003d Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Wed, 9 Apr 2025 12:52:34 +0200 Subject: [PATCH 6/7] feat: Automatically publish full github releases --- .github/workflows/release.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 60d5904..2ea313a 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -90,7 +90,6 @@ jobs: with: changelog: CHANGELOG.md token: ${{ secrets.GITHUB_TOKEN }} - draft: true - name: Attach files to release uses: softprops/action-gh-release@v2 with: From f546076259cb0bfb3c4acd56b8f57a5f992f74d5 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Wed, 9 Apr 2025 12:57:24 +0200 Subject: [PATCH 7/7] chore: Only publish to test pypi on tagged releases --- .github/workflows/release.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 2ea313a..d8d1fc2 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -1,8 +1,6 @@ name: Publish release packages on: push: - branches: - - main tags: - v* @@ -32,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: