Compare commits

...

7 commits

Author SHA1 Message Date
f546076259
chore: Only publish to test pypi on tagged releases
Some checks are pending
website / build (push) Waiting to run
website / deploy (push) Blocked by required conditions
2025-04-09 12:57:51 +02:00
2b37f24790
feat: Automatically publish full github releases 2025-04-09 12:53:54 +02:00
7673770dbd
fix: Attach distribution files to github release 2025-04-09 12:53:53 +02:00
fb88316bc4
feat: Bump version 2025-04-09 12:12:18 +02:00
f20dd14c6f
chore: Rename release workflow 2025-04-09 12:00:14 +02:00
f9e4b05432
chore: Only run release on main branch and version tag pushes 2025-04-09 11:46:05 +02:00
a263e3ddb0
fix: Require build job before releasing 2025-04-09 11:46:04 +02:00
3 changed files with 29 additions and 7 deletions

View file

@ -1,5 +1,9 @@
name: Publish python package to pypi and testpypi name: Publish release packages
on: push on:
push:
tags:
- v*
jobs: jobs:
build: build:
name: Build distribution name: Build distribution
@ -26,6 +30,7 @@ jobs:
publish-to-testpypi: publish-to-testpypi:
name: Test publishing to testpypi name: Test publishing to testpypi
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
needs: needs:
- build - build
environment: environment:
@ -68,13 +73,23 @@ jobs:
name: Create github release name: Create github release
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/') if: startsWith(github.ref, 'refs/tags/')
needs:
- build
permissions: permissions:
contents: write contents: write
steps: steps:
- uses: actions/checkout@v4 - 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: with:
changelog: CHANGELOG.md changelog: CHANGELOG.md
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}
draft: true - name: Attach files to release
branch: main uses: softprops/action-gh-release@v2
with:
files: dist/*

View file

@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased] ## [Unreleased]
## [0.2.0] - 2025-04-09
### Added ### Added
- Place notes into `notes` subdirectory of taskwarrior data directory by default - Place notes into `notes` subdirectory of taskwarrior data directory by default

View file

@ -1,13 +1,18 @@
[project] [project]
name = "topen" name = "topen"
version = "0.1.0" version = "0.2.0"
description = "Quickly edit notes for your taskwarrior tasks" description = "simple taskwarrior note management"
readme = "README.md" readme = "README.md"
requires-python = ">=3.13" requires-python = ">=3.13"
dependencies = [ dependencies = [
"tasklib>=2.5.1", "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] [tool.uv]
package = true package = true