Skip to content

2024.7.1

2024.7.1 #23

Workflow file for this run

name: Publish Python Package
on:
release:
types: [published]
jobs:
build-package:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
# History/tags required to generate version info
fetch-depth: 0
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- run: |
python -m pip install --upgrade pip
pip install build
- run: python -m build
- uses: actions/upload-artifact@v4
with:
name: dist
path: dist
publish-package:
needs: build-package
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v4
with:
name: dist
path: dist
- uses: pypa/gh-action-pypi-publish@release/v1
with:
# repository-url: https://test.pypi.org/legacy/
user: __token__
password: ${{ secrets.PYPI_TOKEN }}