Skip to content

Commit

Permalink
Update to use trusted publishing (#342)
Browse files Browse the repository at this point in the history
  • Loading branch information
j08lue authored Aug 11, 2024
1 parent 8632e1c commit 72c7d79
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,20 @@ on:
jobs:
deploy:
runs-on: ubuntu-latest

environment:
name: pypi
url: https://pypi.org/p/terracotta
permissions:
id-token: write
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

# make sure tags are fetched so we can get a version
- run: |
git fetch --prune --unshallow --tags
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: '3.x'

Expand All @@ -31,6 +35,3 @@ jobs:
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit 72c7d79

Please sign in to comment.