Skip to content

Commit

Permalink
Use OIDC for PyPI releases
Browse files Browse the repository at this point in the history
  • Loading branch information
jborean93 committed May 31, 2023
1 parent ba2ab82 commit d26130a
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@ on:
types:
- published

schedule:
- cron: 0 9 * * *

jobs:
build:
name: build
Expand All @@ -34,8 +31,6 @@ jobs:

- name: Select python
uses: actions/setup-python@v4
with:
python-version: 3.9

- name: Build smbprotocol
run: |
Expand Down Expand Up @@ -145,6 +140,9 @@ jobs:
needs:
- test
runs-on: ubuntu-latest
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write

steps:
- uses: actions/download-artifact@v3
Expand All @@ -155,6 +153,3 @@ jobs:
- name: Publish
if: startsWith(github.ref, 'refs/tags/v')
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit d26130a

Please sign in to comment.