Skip to content

chore(deps): update pypa/gh-action-pypi-publish action to v1.8.12 #31

chore(deps): update pypa/gh-action-pypi-publish action to v1.8.12

chore(deps): update pypa/gh-action-pypi-publish action to v1.8.12 #31

Workflow file for this run

name: Release
on:
push:
branches:
- master
release:
types: [released, prereleased]
jobs:
pypi:
name: PyPI
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- name: Check out the repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.8"
- name: Install pip + twine
run: |
pip install -U pip build twine
pip --version
- name: Install package
run: |
pip install .
- name: Build package
run: |
python -m build
- name: Publish package on PyPI
if: ${{ github.event_name == 'release' }}
uses: pypa/gh-action-pypi-publish@v1.8.12
- name: Publish package on TestPyPI
if: ${{ github.event_name != 'release' }}
uses: pypa/gh-action-pypi-publish@v1.8.12
with:
repository_url: https://test.pypi.org/legacy/