Skip to content

Merge branch 'main' of github.com:MentorMate/python-project-cli #11

Merge branch 'main' of github.com:MentorMate/python-project-cli

Merge branch 'main' of github.com:MentorMate/python-project-cli #11

Workflow file for this run

name: 🐍 + 📦 => PyPI
on:
# workflow_run:
# workflows: ["Tests"]
# branches: [main]
# types:
# - completed
push:
branches:
- "main"
jobs:
release:
runs-on: ubuntu-latest
concurrency: release
permissions:
id-token: write
contents: write
environment:
name: 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 }}