Skip to content

ci: persist credentials #77

ci: persist credentials

ci: persist credentials #77

name: Release
on:
push:
branches:
- release
jobs:
Release:
runs-on: ubuntu-latest
environment: release
concurrency: publish
permissions:
id-token: write
contents: write
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
persist-credentials: false
- name: Python Semantic Release
id: semantic_release
uses: python-semantic-release/python-semantic-release@master
with:
github_token: ${{ secrets.SEMANTIC_RELEASE_PAT }}
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
if: steps.semantic_release.outputs.released == 'true'
- name: Publish package distributions to GitHub Releases
uses: python-semantic-release/upload-to-gh-release@main
if: steps.semantic_release.outputs.released == 'true'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}