From 65a77b346d6074ca3e7e3db18d9dd883d3f557c8 Mon Sep 17 00:00:00 2001 From: Scott Hansen Date: Fri, 22 Nov 2024 10:32:28 -0800 Subject: [PATCH] Correctly format github release. Update README for releasing --- .github/workflows/main.yml | 13 ++++++++++++- README.md | 8 ++++++++ pyproject.toml | 2 ++ 3 files changed, 22 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7b9bc62..bf65726 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -70,6 +70,16 @@ jobs: id-token: write # IMPORTANT: mandatory for sigstore steps: + - name: Check out the repository + uses: actions/checkout@v4 + with: + fetch-depth: 0 # Fetch all tags and history + - name: Get tag annotation + id: tag_annotation + run: | + # Extract the tag annotation for release notes + tag_annotation=$(git for-each-ref --format '%(contents:body)' refs/tags/${{ github.ref_name }}) + echo "annotation=$tag_annotation" >> $GITHUB_ENV - name: Download all the dists uses: actions/download-artifact@v4 with: @@ -88,7 +98,8 @@ jobs: gh release create '${{ github.ref_name }}' --repo '${{ github.repository }}' - --notes "" + --title '${{ github.ref_name }}' + --notes "${{ env.annotation }}" - name: Upload artifact signatures to GitHub Release env: GITHUB_TOKEN: ${{ github.token }} diff --git a/README.md b/README.md index 644954a..5b05ecf 100644 --- a/README.md +++ b/README.md @@ -94,6 +94,14 @@ To run tests in a venv: `make test` (not implemented yet) - Using `nix`: - `nix develop`: Provides development shell with all dependencies. - `make test` and `hatch build/publish` work as usual. +- GitHub Action will upload to TestPyPi on each push to `main`. To create a + GitHub and PyPi release, create a new tag (formatting below) and push tags. + + + + * Release note 1 + * Release note 2 + * ... ## Planned features diff --git a/pyproject.toml b/pyproject.toml index 2a24d03..97ba932 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -31,6 +31,8 @@ classifiers = [ "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", "Topic :: Utilities", ] dependencies = [