Bump coverallsapp/github-action from 2.2.1 to 2.2.3 #108
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: publish | |
concurrency: publish | |
on: | |
push: | |
branches: | |
- trunk | |
tags: | |
- "**" | |
jobs: | |
pypi-publish: | |
runs-on: ubuntu-latest | |
name: Build and publish Python π distributions π¦ to PyPI and TestPyPI | |
permissions: | |
id-token: write | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
# setuptools_scm needs the git history | |
fetch-depth: 0 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: "3.8" | |
- name: Install pypa/build | |
run: >- | |
pip install --user | |
build | |
- name: Build a binary wheel and a source tarball | |
run: >- | |
python -m build | |
--sdist | |
--wheel | |
--outdir dist/ | |
- name: Publish distribution π¦ to Test PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1.8 | |
with: | |
repository-url: https://test.pypi.org/legacy/ | |
- name: Publish distribution π¦ to PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1.8 | |
with: | |
password: ${{ secrets.PYPI_API_TOKEN }} |