Skip to content

v0.2.2

v0.2.2 #4

name: Publish Pip Package
on:
release:
types:
- published
env:
app-name: "chronovoyage"
jobs:
check-tag-name-exists:
runs-on: ubuntu-latest
if: ${{ github.event.release.tag_name != '' }}
steps:
- run: "true"
publish:
needs: check-tag-name-exists
runs-on: ubuntu-latest
environment: release
permissions:
contents: read
id-token: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Download assets
uses: robinraju/release-downloader@v1
with:
tag: ${{ github.event.release.tag_name }}
fileName: ${{ env.app-name }}-*
out-file-path: dist
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1