summaryrefslogtreecommitdiff
path: root/.github/workflows/release.yml
diff options
context:
space:
mode:
authorStephanos Ioannidis <root@stephanos.io>2024-10-04 01:53:40 +0900
committerStephanos Ioannidis <root@stephanos.io>2024-10-04 09:30:58 +0900
commit6203c069afef487829d923fde2e7d780c2ecd3a0 (patch)
tree2ce8c2e7b44e79bbcc0fff5afc163d241dedda40 /.github/workflows/release.yml
parent900e7c8b15eec96051a877514ff5b93ab5f75b3a (diff)
[WIP] ci: Add PyPI release workflowv14.1.1a2
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/workflows/release.yml')
-rw-r--r--.github/workflows/release.yml39
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