-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (33 loc) · 978 Bytes
/
deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Deploy to gh-pages
on:
push:
branches: main
workflow_dispatch:
inputs:
dry-run:
type: boolean
description: Dry run (will build to 'gh-pages-test')
default: false
permissions:
contents: write
env:
INPUTS_DRYRUN: ${{ inputs.dry-run }}
MODULE_LIST_PATH: docs/assets/module-list.json
jobs:
deploy:
runs-on: ubuntu-latest
# if: ( ${{ github.event_name }} == 'workflow_dispatch' || ${{ github.event.workflow_run.conclusion == 'success' }} )
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install dependencies
run: if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- uses: actions/cache@v3
with:
key: mkdocs-material-${{ env.cache_id }}
path: .cache
restore-keys: |
mkdocs-material-
- run: mkdocs gh-deploy --verbose --force