Skip to content

Merge pull request #181 from bluesky/dependabot/github_actions/action… #755

Merge pull request #181 from bluesky/dependabot/github_actions/action…

Merge pull request #181 from bluesky/dependabot/github_actions/action… #755

Workflow file for this run

name: Publish Python 🐍 distributions 📦 to PyPI and TestPyPI
on: push
permissions:
id-token: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-pypi:
name: Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.12"
- name: Install pypa/build
run: >-
python -m
pip install
build
twine
--user
- name: Build a binary wheel and a source tarball
run: >-
python -m
build
--sdist
--wheel
--outdir dist/
.
- name: Check package metadata
run: >-
twine check dist/*
- name: Publish 📦 to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
# password: ${{ secrets.PYPI_API_TOKEN }}
verbose: true