Skip to content

Commit

Permalink
.github: Add release workflow
Browse files Browse the repository at this point in the history
Upload a pypi package when a Github release is published.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
  • Loading branch information
pdgendt committed Sep 18, 2024
1 parent 50765fa commit e9005b3
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Release

on:
release:
types: [ published ]

permissions:
contents: write

jobs:
package:
name: Package
uses: ./.github/workflows/package.yml

release:
name: Release
needs: [ package ]
runs-on: ubuntu-latest

steps:
- name: Download build artifacts
uses: actions/download-artifact@v4
with:
path: dist

- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit e9005b3

Please sign in to comment.