Skip to content

Bump JamesIves/github-pages-deploy-action from 4.6.8 to 4.6.9 (#558) #189

Bump JamesIves/github-pages-deploy-action from 4.6.8 to 4.6.9 (#558)

Bump JamesIves/github-pages-deploy-action from 4.6.8 to 4.6.9 (#558) #189

name: Build and publish to PyPI if tagged
on: push
jobs:
build-n-publish:
name: Build and publish to PyPI if tagged
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Set up Python 3.9
uses: actions/setup-python@v5
with:
python-version: 3.9
- name: Install pypa/build
run: >-
python -m
pip install
build
- name: Build a source tarball
run: >-
python -m
build
--sdist
--outdir dist/
- name: Publish distribution to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}