-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (34 loc) · 1.18 KB
/
publish.yaml
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
name: Publish site via GitHub Pages
on:
push:
branches:
- main
jobs:
build:
name: Publish site
runs-on: ubuntu-latest
steps:
- name: Checkout main
uses: actions/checkout@v2
- name: Prepare assets
run: |
mkdir -p ./mkdocs/docs/assets/books
cp -r ./assets/books/covers ./mkdocs/docs/assets/books
mkdir -p ./mkdocs/docs/assets/learning-paths
cp -r ./assets/learning-paths/icons ./mkdocs/docs/assets/learning-paths
cp ./assets/favicon.png ./mkdocs/docs/assets/favicon.png
cp ./assets/logo.png ./mkdocs/docs/assets/logo.png
- name: Set custom domain
env:
CUSTOM_DOMAIN: itreadventure.com
run: echo "${CUSTOM_DOMAIN}" > ./mkdocs/docs/CNAME
- name: Deploy docs
uses: mhausenblas/mkdocs-deploy-gh-pages@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CONFIG_FILE: mkdocs/mkdocs.yml
EXTRA_PACKAGES: build-base
# GITHUB_DOMAIN: enribd.github.io
CUSTOM_DOMAIN: itreadventure.com
GITHUB_REPOSITORY: enribd/choose-your-own-it-readventure
REQUIREMENTS: mkdocs/requirements.txt