Skip to content

Commit

Permalink
Trusted publishing wasn't the issue 🤦
Browse files Browse the repository at this point in the history
  • Loading branch information
cpsievert committed Dec 11, 2024
1 parent ed3b17f commit 3a88962
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,14 @@ jobs:
name: Build and release Python package
runs-on: ubuntu-latest

# Python release tags start with "py/v*"
if: startsWith(github.ref, 'refs/tags/py/v')
if: startsWith(github.ref, 'refs/tags/v')

environment:
name: pypi
url: https://pypi.org/project/chatlas/

permissions: # for trusted publishing
id-token: write

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -44,6 +50,3 @@ jobs:

- name: 🚢 Publish release on PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit 3a88962

Please sign in to comment.