Publish EvaP to PyPI #52
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: EvaP Release | |
on: | |
workflow_dispatch: | |
# TODO: remove | |
pull_request: | |
jobs: | |
pypi-publish: | |
name: upload release to PyPI | |
runs-on: ubuntu-latest | |
environment: release | |
permissions: | |
id-token: write | |
steps: | |
- run: | | |
RUN_ID=$(gh run --repo ${{ github.repository }} list --commit ${{ github.sha }} --status success --workflow "EvaP Test Suite" --json databaseId --jq '.[].databaseId') | |
echo $GITHUB_REF $GITHUB_SHA | |
echo $RUN_ID | |
test ! -z "$RUN_ID" | |
gh run --repo ${{ github.repository }} download "$RUN_ID" --name wheel --dir dist | |
env: | |
GH_TOKEN: ${{ github.token }} | |
- run: tar tvf dist/*.tar.gz | |
- run: unzip -l dist/*.whl | |
- name: Publish package distributions to PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 |