Skip to content

Commit

Permalink
Create release automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
faymanns committed Aug 22, 2024
1 parent a21bed7 commit f8dbc3a
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/test_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ on:
- main
workflow_dispatch:

permissions:
contents: write

jobs:
test:
name: ${{ matrix.platform }} py${{ matrix.python-version }}
Expand Down Expand Up @@ -78,13 +81,11 @@ jobs:
python -m build .
twine upload dist/*
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body: Release for Zenodo
draft: false
prerelease: false
tag: ${{ github.ref_name }}
run: |
gh release create "$tag" \
--repo="$GITHUB_REPOSITORY" \
--title="${GITHUB_REPOSITORY#*/} ${tag#v}" \
--generate-notes

0 comments on commit f8dbc3a

Please sign in to comment.