0.1.25 #27
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: CD | |
on: | |
release: | |
types: [prereleased, released] | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write # softprops/action-gh-release | |
id-token: write # pypa/gh-action-pypi-publish | |
issues: write # apexskier/github-release-commenter | |
pull-requests: write # apexskier/github-release-commenter | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.x | |
- name: Install dependencies | |
run: | | |
pip install -U pip setuptools wheel build | |
- name: Build package distributions | |
run: | | |
python -m build | |
- name: Upload package distributions as release assets | |
uses: softprops/[email protected] | |
with: | |
files: dist/* | |
# https://github.com/pypa/gh-action-pypi-publish#trusted-publishing | |
- name: Publish package distributions to PyPI | |
uses: pypa/[email protected] | |
- uses: apexskier/github-release-commenter@v1 | |
with: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
comment-template: | | |
Released {release_link} |