dependabot[bot] d8a38db483 Bump actions/checkout from 3.5.2 to 3.5.3
Bumps [actions/checkout](https://github.com/actions/checkout) from 3.5.2 to 3.5.3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3.5.2...v3.5.3)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-12 03:00:36 +00:00

46 lines
1.2 KiB
YAML

name: Build mkdocs and deploy to GitHub Pages
on: [push, pull_request]
jobs:
build:
name: Build docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.5.3
- uses: actions/setup-python@v4.6.0
with:
python-version: 3.x
- uses: actions/cache@v3.3.1
with:
key: ${{ github.ref }}
path: .cache
- run: pip install -r docs/requirements.txt
- run: |
cp -R general docs/
cp -R images docs/
- run: mkdocs build
deploy:
if: github.event_name == 'push' && contains(fromJson('["refs/heads/master", "refs/heads/main", "refs/heads/mkdocs"]'), github.ref)
needs: build
name: Deploy docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.5.3
with:
fetch-depth: '0'
- uses: actions/setup-python@v4.6.0
with:
python-version: 3.x
- uses: actions/cache@v3.3.1
with:
key: ${{ github.ref }}
path: .cache
- run: pip install -r docs/requirements.txt
- run: |
cp -R general docs/
cp -R images docs/
- run: mkdocs gh-deploy --force