Skip to content

publish v0.0.1 to pypi #1

publish v0.0.1 to pypi

publish v0.0.1 to pypi #1

Workflow file for this run

name: Publish package
on:
release:
types: [created]
jobs:
release-build:
if: github.event_name == 'release' && github.event.action == 'created'
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/[email protected]
with:
python-version: ${{ matrix.python-version }}
- name: Install build
run: python3 -m pip install --upgrade build
- name: Build release distributions
run: |
python3 -m build --outdir dist/
- name: Upload dists
uses: actions/upload-artifact@v4
with:
name: release-dists
path: dist/
pypi-publish:
runs-on: ubuntu-latest
needs:
- release-build
permissions:
id-token: write
steps:
- name: Retrieve release distributions
uses: actions/download-artifact@v4
with:
name: release-dists
path: dist/
- name: Publish release distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1