Skip to content

chore(main): release 0.5.3 #66

chore(main): release 0.5.3

chore(main): release 0.5.3 #66

Workflow file for this run

name: Publish To PyPI
on:
pull_request_target:
branches:
- main
types:
- closed
workflow_dispatch:
jobs:
check-pr-title:
if: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.merged == true }}
runs-on: ubuntu-latest
outputs:
is_chore_main_release: ${{ steps.check_title.outputs.is_chore_main_release }}
steps:
- name: Check PR title
id: check_title
run: |
if [[ "${{ github.event.pull_request.title }}" == "chore(main): release"* ]]; then
echo "is_chore_main_release=true" >> $GITHUB_OUTPUT
else
echo "is_chore_main_release=false" >> $GITHUB_OUTPUT
fi
pypi-publish:
needs: check-pr-title
if: ${{ needs.check-pr-title.outputs.is_chore_main_release == 'true' }}
name: Upload release to PyPI
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- uses: pdm-project/setup-pdm@v4
with:
version: "head"
- name: Publish package distributions to PyPI
run: pdm publish