Skip to content

fix: update github/codeql-action action to v3.28.0 (#1270) #1238

fix: update github/codeql-action action to v3.28.0 (#1270)

fix: update github/codeql-action action to v3.28.0 (#1270) #1238

---
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@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2
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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
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 }}