Skip to content

Merge pull request #98 from sandialabs/troubleshoot-rtd-build #33

Merge pull request #98 from sandialabs/troubleshoot-rtd-build

Merge pull request #98 from sandialabs/troubleshoot-rtd-build #33

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@5c7944e73c4c2a096b17a9cb74d65b6c2bbafbde # v2.9.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@0ab0b79471669eb3a4d647e625009c62f9f3b241 # 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 }}