Skip to content

Commit 0bc4921

Browse files
committed
Add release workflow
1 parent 3a64866 commit 0bc4921

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/release.yml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: EvaP Release
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
pypi-publish:
8+
name: upload release to PyPI
9+
runs-on: ubuntu-latest
10+
environment: release
11+
permissions:
12+
id-token: write
13+
steps:
14+
- run: |
15+
RUN_ID=$(gh run list --commit "$GITHUB_REF" --status success --workflow "EvaP Test Suite" --json databaseId --jq '.[].databaseId')
16+
gh run download "$RUN_ID" --name wheel --dir dist
17+
- run: tar tvf dist/*.tar.gz
18+
- run: unzip -l dist/*.whl
19+
- name: Publish package distributions to PyPI
20+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)