mirror of
https://github.com/linuxserver/docker-documentation.git
synced 2026-02-19 18:14:15 +08:00
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 4.7.0 to 4.7.1. - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](https://github.com/actions/setup-python/compare/v4.7.0...v4.7.1) --- updated-dependencies: - dependency-name: actions/setup-python dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
40 lines
1013 B
YAML
40 lines
1013 B
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@v4.1.0
|
|
- uses: actions/setup-python@v4.7.1
|
|
with:
|
|
python-version: 3.x
|
|
- uses: actions/cache@v3.3.2
|
|
with:
|
|
key: ${{ github.ref }}
|
|
path: .cache
|
|
- run: pip install -r docs/requirements.txt
|
|
- run: mkdocs build
|
|
|
|
deploy:
|
|
if: github.event_name == 'push' && contains(fromJson('["refs/heads/master", "refs/heads/main"]'), github.ref)
|
|
needs: build
|
|
name: Deploy docs
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4.1.0
|
|
with:
|
|
fetch-depth: '0'
|
|
- uses: actions/setup-python@v4.7.1
|
|
with:
|
|
python-version: 3.x
|
|
- uses: actions/cache@v3.3.2
|
|
with:
|
|
key: ${{ github.ref }}
|
|
path: .cache
|
|
- run: pip install -r docs/requirements.txt
|
|
- run: mkdocs gh-deploy --force
|