RootCanal v1.7.0 #4
Workflow file for this run
This file contains 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: Publish Python Wheel | |
on: | |
release: | |
types: [published] | |
jobs: | |
pypi-publish: | |
name: Publish Python Wheel 📦 to PyPI | |
runs-on: ubuntu-latest | |
environment: release | |
permissions: | |
id-token: write | |
steps: | |
- name: Set VERSION | |
run: | | |
TAG=${{ github.ref_name }} | |
echo "VERSION=${TAG#v}" >> $GITHUB_ENV | |
- name: Fetch Python Wheel | |
uses: robinraju/[email protected] | |
with: | |
tag: ${{ github.ref_name }} | |
fileName: rootcanal-${{ env.VERSION }}-py3-none-any.whl | |
out-file-path: dist | |
- name: Publish package distributions to PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 |