Skip to content

Commit

Permalink
[WIP] 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 <root@stephanos.io>
  • Loading branch information
stephanosio committed Oct 4, 2024
1 parent 900e7c8 commit 6203c06
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
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
with:
path: dist

- 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 6203c06

Please sign in to comment.