Skip to content

Switch back to using API token for PyPI. We should update to trusted … #10

Switch back to using API token for PyPI. We should update to trusted …

Switch back to using API token for PyPI. We should update to trusted … #10

Workflow file for this run

---
name: Publish Python 🐍 distributions 📦 to PyPI and TestPyPI
on: # NOLINT
push:
tags:
- '*'
jobs:
build-n-publish:
name: Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/statick-tooling
permissions:
id-token: write
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
cache: 'pip'
- name: Build a binary wheel and a source tarball
run: |
pip install -q build
python -m build
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_TOKEN }}