PyPI Release #8
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: PyPI Release | |
on: | |
workflow_dispatch: | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.12' | |
- name: Install Poetry | |
run: | | |
pip install poetry | |
- name: Build package | |
run: poetry build | |
- name: Publish package | |
run: | | |
poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }} | |
poetry publish | |
continue-on-error: true | |
- run: pip install githubrelease markdown-to-json | |
- run: python scripts/gh_release.py | |
env: | |
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} |