You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
name: Upload Python Package
on:
release:
types: [created]
jobs:
deploy:
permissions:
contents: write # Required to update release notes
id-token: write # Required for PyPI trusted publishing
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Needed for hatch-vcs to determine version
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: Install hatch
run: |
python -m pip install --upgrade pip
pip install hatch
- name: Generate changelog for this release
uses: orhun/git-cliff-action@v4
with:
config: cliff.toml
args: --latest --strip header
env:
OUTPUT: release-notes.md
- name: Update release notes
uses: softprops/action-gh-release@v2
with:
body_path: release-notes.md
- name: Build python package
run: |
hatch build # uses the committed src/experimaestro/webui/data (no Node needed)