Skip to content

Commit

Permalink
CI: Update release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ghisvail committed Apr 30, 2024
1 parent aad5050 commit 2cb4517
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,27 +1,26 @@
name: publish
name: release

on:
release:
types: [ published ]

permissions:
contents: read
id-token: write

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
publish:
pypi:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
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 }}

0 comments on commit 2cb4517

Please sign in to comment.