Skip to content

Commit

Permalink
set proper permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Dalton committed Jul 1, 2024
1 parent 54259e4 commit 3b9e929
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,16 @@ on:
types: [published]

jobs:
deploy:
pypi-publish:
name: Upload release to PyPI
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/abismal
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
steps:
# retrieve your distributions here
- uses: actions/checkout@v4
- name: Install Python
uses: actions/setup-python@v5
Expand All @@ -20,5 +27,5 @@ jobs:
- name: Build package
run: |
python setup.py sdist bdist_wheel
- name: Publish package to PyPI
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 3b9e929

Please sign in to comment.