Skip to content

Commit

Permalink
ci: Add PyPI release workflow
Browse files Browse the repository at this point in the history
This commit adds a GitHub Actions CI workflow that tests and builds the
Kconfiglib Python package and publishes it to PyPI when a new release is
published.

Signed-off-by: Stephanos Ioannidis <[email protected]>
  • Loading branch information
stephanosio committed Oct 4, 2024
1 parent 0f321f8 commit a88c021
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Release

on:
release:
types: [ published ]

jobs:
test:
name: Test
uses: ./.github/workflows/test.yml

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

release:
name: Release
environment: release
needs: [ test, package ]
runs-on: ubuntu-22.04

permissions:
contents: write
id-token: write

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

- name: Upload release assets
uses: softprops/action-gh-release@v2
with:
files: |
dist/*.whl
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit a88c021

Please sign in to comment.