From 8a884ce5ec2b299c7f27d19f6cdd2cc8f0de6b5f Mon Sep 17 00:00:00 2001 From: NicolasGensollen Date: Mon, 20 Nov 2023 15:02:20 +0100 Subject: [PATCH] add publish workflow --- .github/workflows/publish.yaml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/publish.yaml diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml new file mode 100644 index 0000000..540172c --- /dev/null +++ b/.github/workflows/publish.yaml @@ -0,0 +1,27 @@ +name: publish + +on: + release: + types: [ published ] + +permissions: + contents: read + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v4 + with: + python-version: '3.x' + - name: Build distribution + run: pipx run build + - name: Publish to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 + with: + password: ${{ secrets.PYPI_API_TOKEN }}