-
Notifications
You must be signed in to change notification settings - Fork 84
53 lines (45 loc) · 1.44 KB
/
deploy_docs.yml
File metadata and controls
53 lines (45 loc) · 1.44 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Deploy documentation
# Check for reference:
# https://github.com/s1rius/ezlog/blob/20dce11e6d324bb18f57dc7c7c6d4a8bf40064de/.github/workflows/publish_pages.yml
on:
schedule:
- cron: "40 03 */2 * *" # Runs at 03:40, every 2 days
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
concurrency:
group: pages
cancel-in-progress: true
env:
runner: ubuntu-latest
cache-mkdocs-key: cache-mkdocs
REPO_URL: https://github.com/KyleGospo/docs.bazzite.gg
SITE_URL: https://docs.bazzite.gg
jobs:
deploy:
permissions:
contents: read # To push a branch
pages: write # To push to a GitHub Pages site
id-token: write # To update the deployment status
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
with:
fetch-depth: 0
# Necessary in order to have fetch_discourse_md.py available for mdbook-cmd
- name: Add docs/utils to PATH
run: |
echo $PWD/utils:$PATH >> $GITHUB_PATH
- name: Build book
uses: ./.github/workflows/build_mkdocs
with:
site_url: ${{ env.SITE_URL }}
repo_url: ${{ env.REPO_URL }}
working_dir: ${{ github.workspace }}
output_dir: ${{ github.workspace }}/book
upload_github_page: ${{ github.event_name == 'pull_request' && 'false' || 'true' }}
github_token: ${{ github.token }}