Skip to content

Commit

Permalink
chore: add trusted publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
monosans committed Oct 1, 2024
1 parent 59e4976 commit c6a3b19
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ jobs:
publish-pypi:
runs-on: ubuntu-latest
if: ${{ github.repository_owner == 'djlint' }}
# permissions:
# id-token: write
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- run: pipx run poetry build --no-interaction
- uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
attestations: true
publish-npm:
runs-on: ubuntu-latest
if: ${{ github.repository_owner == 'djlint' }}
Expand Down

0 comments on commit c6a3b19

Please sign in to comment.