Merge pull request #154 from sandialabs/dependabot/github_actions/git… #108
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Semantic Release | |
on: | |
push: | |
branches: | |
- master | |
permissions: | |
contents: read | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
concurrency: release | |
environment: release | |
permissions: | |
id-token: write | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2 | |
with: | |
egress-policy: audit | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
fetch-depth: 0 | |
token: ${{ secrets.GH_TOKEN }} | |
- name: Python Semantic Release | |
id: release | |
uses: python-semantic-release/python-semantic-release@825655a47c9f7496f99ab144d28c424d40333a8a # master | |
with: | |
github_token: ${{ secrets.GH_TOKEN }} | |
- name: Publish to PyPI | |
uses: pypa/gh-action-pypi-publish@15c56dba361d8335944d31a2ecd17d700fc7bcbc # release/v1 | |
if: steps.release.outputs.released == 'true' | |
- name: Publish to GitHub Releases | |
uses: python-semantic-release/upload-to-gh-release@0a92b5d7ebfc15a84f9801ebd1bf706343d43711 # main | |
if: steps.release.outputs.released == 'true' | |
with: | |
github_token: ${{ secrets.GH_TOKEN }} |