Skip to content

feat: Fix semantic release #9

feat: Fix semantic release

feat: Fix semantic release #9

Workflow file for this run

name: 🐍 + 📦 => PyPI

Check failure on line 1 in .github/workflows/main_release.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/main_release.yaml

Invalid workflow file

`on.workflow_run` does not reference any workflows. See https://docs.github.com/actions/learn-github-actions/events-that-trigger-workflows#workflow_run for more information
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: 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/') != '' }}