Skip to content

Commit

Permalink
Correctly format github release. Update README for releasing
Browse files Browse the repository at this point in the history
  • Loading branch information
firecat53 committed Nov 22, 2024
1 parent d6065e8 commit f86dab6
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,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:
Expand All @@ -96,7 +106,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 }}
Expand Down
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,14 @@ To run tests in a venv: `make test`
- Using `nix`:
- `nix develop`: Provides development shell/venv 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.

<tag name on first line>

* Release note 1
* Release note 2
* ...

[1]: https://github.com/pschmitt/pykeepass "Pykeepass"
[2]: https://davedavenport.github.io/rofi/ "Rofi"
Expand Down

0 comments on commit f86dab6

Please sign in to comment.