Skip to content

Bump step-security/harden-runner from 2.10.4 to 2.11.0 #66

Bump step-security/harden-runner from 2.10.4 to 2.11.0

Bump step-security/harden-runner from 2.10.4 to 2.11.0 #66

Workflow file for this run

name: mkdocs
on:
pull_request:
paths:
- '.github/workflows/mkdocs.yml'
- 'docs/**/*'
push:
branches:
main
paths:
- '.github/workflows/mkdocs.yml'
- 'docs/**/*'
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
with:
egress-policy: audit
- name: Checkout cmsis-toolbox
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup Python
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
- name: Install MkDocs
run: |
pip install mkdocs
- name: Build Documentation
run: mkdocs build
- name: Archive Documentation
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
with:
name: docs
path: site/
publish:
if: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Checkout cmsis-toolbox
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
ref: 'gh-pages'
- name: Purge old content
run: rm -rf *
- uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
with:
name: docs
- name: Commit new content
run: |
git config user.name github-actions
git config user.email [email protected]
git add .
git commit -m "Update documentation"
git push