Skip to content

Commit

Permalink
Merge pull request #64 from shunichironomura/gh-action/add-tag-push
Browse files Browse the repository at this point in the history
Add write permissions and push tags in release.yml
  • Loading branch information
shunichironomura authored Jul 12, 2023
2 parents d097998 + f52ad09 commit 3a82512
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ jobs:
create-tag:
name: Create a Git tag
runs-on: ubuntu-latest
permissions:
contents: write
outputs:
version: ${{ steps.get-version.outputs.version }}
steps:
Expand All @@ -33,6 +35,7 @@ jobs:
run: |
git fetch --tags
git tag --annotate "v${{ steps.get-version.outputs.version }}" --message="v${{ steps.get-version.outputs.version }}"
git push origin "v${{ steps.get-version.outputs.version }}"
publish-to-pypi:
name: Publish to PyPI
Expand Down

0 comments on commit 3a82512

Please sign in to comment.