Skip to content

fix: update dependency mkdocs-material to v9.5.42 (#1184) #1152

fix: update dependency mkdocs-material to v9.5.42 (#1184)

fix: update dependency mkdocs-material to v9.5.42 (#1184) #1152

---
name: Python Package Semantic Release
on:
push:
branches:
- main
jobs:
release:
if: |
! contains(github.repository, 'template') &&
! contains(github.event.head_commit.message, 'Initial commit')
runs-on: ubuntu-latest
concurrency: release
steps:
- name: Harden Runner
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
with:
egress-policy: block
allowed-endpoints: >
api.github.com:443
files.pythonhosted.org:443
github.com:443
pypi.fury.io:443
pypi.org:443
test.pypi.org:443
- name: Checkout repository
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
with:
fetch-depth: 0
- name: Setup Dependencies
uses: ./.github/actions/setup-poetry
- name: Setup git credentials
uses: ./.github/actions/setup-git
- name: Prepare semantic release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: poetry run semantic-release publish
- name: Deploy to registry
run: |
poetry config repositories.${{ secrets.PYPI_NAME }} ${{ secrets.PYPI_URL }}
poetry config pypi-token.${{ secrets.PYPI_NAME }} ${{ secrets.PYPI_TOKEN }}
poetry publish --build --repository ${{ secrets.PYPI_NAME }}