forked from aws/aws-eks-best-practices
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (37 loc) · 972 Bytes
/
main.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
34
35
36
37
38
39
40
41
42
43
# GCLINE@ 03SEP2020
name: deploy to mkdocs
# the two different ways to trigger the workflow
on:
# enable manual trigger button in github actions web
workflow_dispatch:
# enable auto trigger based on both path and branch
push:
# only main branch
branches:
- main
- master
# at least one changed file must match this path
paths:
- 'content/**'
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.x
- run: pip install mkdocs-material
- run: mkdocs gh-deploy --force
#jobs:
# build:
# name: Deploy docs
# runs-on: ubuntu-latest
# steps:
# - name: Checkout master
# uses: actions/checkout@v2
# - name: Deploy docs
# uses: mhausenblas/mkdocs-deploy-gh-pages@master
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# CONFIG_FILE: mkdocs.yml