fix(gha)(deps): bump the github-actions group with 7 updates #15
Workflow file for this run
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
--- | |
# SPDX-FileCopyrightText: GitHub, Inc. and contributors | |
# SPDX-License-Identifier: MIT | |
name: "Release documentation" | |
on: # yamllint disable-line rule:truthy | |
push: | |
branches: [main] | |
paths: | |
- docs/** | |
- mkdocs.yml | |
- pyproject.toml | |
- .github/workflows/docs-release.yml | |
pull_request: | |
types: [closed] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | |
permissions: | |
contents: read | |
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. | |
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. | |
concurrency: | |
group: "pages" | |
cancel-in-progress: false | |
# Default to bash | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
build-and-deploy: | |
if: github.event.pull_request.merged == true | |
permissions: | |
pages: write | |
contents: write | |
id-token: write | |
runs-on: ubuntu-latest | |
steps: | |
# Checkout the repository to the GitHub Actions runner | |
- name: "🧰 Checkout Source Code" | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: "⚙️️ Set up Python" | |
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0 | |
with: | |
# Read python version from a file .python-version | |
python-version-file: ".standard-python-version" | |
check-latest: true | |
cache: pip | |
- name: "⚙️️ Get full Python version" | |
id: full-python-version | |
run: echo version="$(python -c "import sys; print('-'.join(str(v) for v in sys.version_info))")" >> "$GITHUB_OUTPUT" | |
- name: "⚙️️ Set up cache" | |
uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2 | |
id: cache | |
with: | |
path: .venv | |
key: venv-${{ runner.os }}-${{ steps.full-python-version.outputs.version }}-${{ hashFiles('**/poetry.lock') }} | |
- name: "🧰 Install Hatch" | |
run: pip install --upgrade hatch | |
- name: Build and deploy with MkDocs | |
run: hatch run docs:build | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4.0.0 | |
if: github.ref == 'refs/heads/main' | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
commit_message: ${{ github.event.head_commit.message }} |