Skip to content

Commit

Permalink
Use PyPI trusted publishers (#459)
Browse files Browse the repository at this point in the history
  • Loading branch information
michalk8 authored Nov 9, 2023
1 parent f139415 commit 47b8bc7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: lint
name: Lint

on:
schedule:
Expand Down
11 changes: 8 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Upload Python Package
name: Upload package

on:
release:
Expand All @@ -7,6 +7,10 @@ on:
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
id-token: write
environment: publish-pypi

steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
Expand All @@ -22,8 +26,9 @@ jobs:
- name: Build package
run: tox -e build-package

- name: Publish package
- name: Publish package on PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
skip-existing: true
verify-metadata: true
verbose: true
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: tests
name: Tests

on:
schedule:
Expand Down

0 comments on commit 47b8bc7

Please sign in to comment.