Skip to content

Commit

Permalink
add release process
Browse files Browse the repository at this point in the history
  • Loading branch information
jensens committed Dec 10, 2023
1 parent 8b5d78f commit 3c68bb5
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Release to PyPI

on:
release:
types: [published]

jobs:
tests:
uses: ./.github/workflows/test.yaml
pypi-publish:
name: Upload release to PyPI
runs-on: ubuntu-latest
needs: tests
environment: release
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.12"
- name: Install pypa/build
run: >-
python -m
pip install
build
--user
- name: Build a binary wheel and a source tarball
run: >-
python -m
build
--sdist
--wheel
--outdir dist/
.
- name: Publish a Python distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
verbose: true

0 comments on commit 3c68bb5

Please sign in to comment.