Skip to content

Commit

Permalink
Use trusted publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
theirix committed Dec 10, 2024
1 parent ac0ea0e commit 683db2b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ jobs:
build:

runs-on: ubuntu-latest
environment: default
strategy:
matrix:
python-version: [ "3.8", "3.10", "3.12" ]
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ jobs:
publish:

runs-on: ubuntu-latest
environment: publish

permissions:
id-token: write
Expand All @@ -29,5 +30,8 @@ jobs:
- name: Install the project
run: uv sync --all-extras --dev

- name: Publish
run: uv publush
- name: Build package
run: uv build

- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 683db2b

Please sign in to comment.