-
Notifications
You must be signed in to change notification settings - Fork 3
44 lines (40 loc) · 1.22 KB
/
deploy-docs.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
name: Deploy documentation ⚙️
on:
push:
branches:
- main
paths:
- 'documentation/**'
- 'exercise-materials/**'
defaults:
run:
working-directory: documentation
jobs:
build:
name: Build and Deploy Documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install requirements 📦
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Deploy 📦
run: mkdocs gh-deploy --strict --force --message 'update website via GitHub Actions'
- name: add exercises zipfile 📦
run: |
cd ..
zip -r exercise-materials.zip exercise-materials/
zip -r student-vm-setup.zip environment/student-vm/
ls -lh
git push --set-upstream origin gh-pages
git config --global user.email "tomkralidis@gmail.com"
git config --global user.name "Tom Kralidis"
git checkout gh-pages
git add exercise-materials.zip
git add student-vm-setup.zip
git commit -m "add exercise-materials zipfile" -a
git push