Skip to content

Make EvaP pip-installable and publish to PyPI #52

Make EvaP pip-installable and publish to PyPI

Make EvaP pip-installable and publish to PyPI #52

Workflow file for this run

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