mirror of
https://github.com/linuxserver/docker-documentation.git
synced 2026-02-19 18:14:15 +08:00
Bumps [actions/cache](https://github.com/actions/cache) from 3.2.4 to 3.2.5. - [Release notes](https://github.com/actions/cache/releases) - [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md) - [Commits](https://github.com/actions/cache/compare/v3.2.4...v3.2.5) --- updated-dependencies: - dependency-name: actions/cache dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
46 lines
1.2 KiB
YAML
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.3.0
|
|
- uses: actions/setup-python@v4.5.0
|
|
with:
|
|
python-version: 3.x
|
|
- uses: actions/cache@v3.2.5
|
|
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.3.0
|
|
with:
|
|
fetch-depth: '0'
|
|
- uses: actions/setup-python@v4.5.0
|
|
with:
|
|
python-version: 3.x
|
|
- uses: actions/cache@v3.2.5
|
|
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
|