diff options
| author | Stephanos Ioannidis <root@stephanos.io> | 2024-10-04 01:53:40 +0900 |
|---|---|---|
| committer | Stephanos Ioannidis <root@stephanos.io> | 2024-10-04 01:55:00 +0900 |
| commit | 89a152374fe234c12b8d25f07c51087502b798e3 (patch) | |
| tree | e3cd63412e0b2722eb0f15a64065dcba8a2bb543 /.github | |
| parent | c11cb31363a5ad1c3ad2ea2561c713dba8247c8b (diff) | |
[WIP] ci: Add PyPI release workflowv14.1.1a1
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>
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/release.yml | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..79cdea8 --- /dev/null +++ b/.github/workflows/release.yml @@ -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 |
