Skip to content

Commit

Permalink
Set up build and publish to PyPI on GitHub publish
Browse files Browse the repository at this point in the history
  • Loading branch information
phyrwork committed Aug 27, 2024
1 parent 239ad8e commit 65dda89
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Publish

on:
release:
types: [published]

permissions:
contents: read

jobs:
deploy:
runs-on: ubuntu-latest

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

permissions:
id-token: write

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Build and publish to PyPI
uses: JRubics/[email protected]
with:
pypi_token: ${{ secrets.PYPI_TOKEN }}

0 comments on commit 65dda89

Please sign in to comment.