Skip to content

Merge pull request #152 from jplock/jp-docs #5

Merge pull request #152 from jplock/jp-docs

Merge pull request #152 from jplock/jp-docs #5

Workflow file for this run

name: deploy to mkdocs
# the two different ways to trigger the workflow
on:
# enable manual trigger button in github actions web
workflow_dispatch:
# enable auto trigger based on both path and branch
push:
# only main branch
branches:
- main
# at least one changed file must match this path
paths:
- "docs/**"
permissions:
contents: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}
cancel-in-progress: true
jobs:
deploy:
if: github.repository_owner == 'aws-samples'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
with:
python-version: 3.x
cache: pip
- run: pip install mkdocs-material mkdocs-static-i18n==1.2.0
- run: mkdocs gh-deploy --force