Skip to content

Merge pull request #107 from sandialabs/dependabot/github_actions/pyp… #40

Merge pull request #107 from sandialabs/dependabot/github_actions/pyp…

Merge pull request #107 from sandialabs/dependabot/github_actions/pyp… #40

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@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
with:
egress-policy: audit
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
fetch-depth: 0
token: ${{ secrets.GH_TOKEN }}
- name: Python Semantic Release
id: release
uses: python-semantic-release/python-semantic-release@fe6b271e942115b528c85e42bc19611b01dcea59 # master
with:
github_token: ${{ secrets.GH_TOKEN }}
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@897895f1e160c830e369f9779632ebc134688e1b # release/v1
if: steps.release.outputs.released == 'true'
- name: Publish to GitHub Releases
uses: python-semantic-release/upload-to-gh-release@fa2bbbf8e61069551abd513fdc5627e14c8637c7 # main
if: steps.release.outputs.released == 'true'
with:
github_token: ${{ secrets.GH_TOKEN }}