Skip to content

Commit

Permalink
workflows: add release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
woodruffw committed Jun 20, 2023
1 parent 1d0a65f commit ecbe369
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
on:
release:
types:
- published

name: release

jobs:
pypi:
name: upload release to PyPI
runs-on: ubuntu-latest
environment: release
permissions:
# Used for OIDC publishing.
# Used to sign the release's artifacts with sigstore-python.
id-token: write

# Used to attach signing artifacts to the published release.
contents: write

steps:
- uses: actions/checkout@v3

- uses: actions/setup-python@v4
with:
python-version: "3.x"

- name: deps
run: python -m pip install -U setuptools build wheel

- name: build
run: python -m build

- name: publish
uses: pypa/[email protected]

- name: sign
uses: sigstore/[email protected]
with:
inputs: ./dist/*.tar.gz ./dist/*.whl
release-signing-artifacts: true
bundle-only: true

0 comments on commit ecbe369

Please sign in to comment.