Skip to content

Commit

Permalink
fix(ci): permissions in release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinCura committed Oct 20, 2023
1 parent 431eea1 commit 71faa63
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ env:
PYTHON_VERSION: 3.10.10
POETRY_VERSION: 1.6.1

permissions:
contents: write

jobs:
publish_and_release:
name: Publish Python 🐍 distribution 📦 to PyPI and create GitHub Release
Expand Down Expand Up @@ -48,8 +51,9 @@ jobs:
- name: Build package
run: poetry build

- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
# TODO: uncomment
# - name: Publish package distributions to PyPI
# uses: pypa/gh-action-pypi-publish@release/v1

- name: GitHub Release
uses: softprops/action-gh-release@v1
Expand Down

0 comments on commit 71faa63

Please sign in to comment.