Skip to content

🐍 + 📦 => PyPI #14

🐍 + 📦 => PyPI

🐍 + 📦 => PyPI #14

Workflow file for this run

name: 🐍 + 📦 => PyPI
on:
workflow_run:
workflows: ["Tests"]
branches: [main]
types:
- completed
jobs:
release:
runs-on: ubuntu-latest
concurrency: release
permissions:
id-token: write
contents: write
environment:
name: release-pypi
url: https://pypi.org/p/python-project-cli
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Check for new Relase and ...release
uses: python-semantic-release/python-semantic-release@master
with:
github_token: ${{ secrets.ACCESS_TOKEN }}
- name: Publish package to PyPI if new release available
uses: pypa/gh-action-pypi-publish@release/v1
if: ${{ hashFiles('dist/') != '' }}
with:
oidc: false
password: ${{ secrets.PYPI_API_TOKEN }}