forked from pfloos/PTEROSOR_midterm_workshop
-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (30 loc) · 885 Bytes
/
gh-pages.yml
File metadata and controls
39 lines (30 loc) · 885 Bytes
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
name: github pages
on:
push:
branches:
- master
- site
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: refresh apt
run: sudo apt update
- name: install dependencies
run: sudo apt install wget
- name: install hugo
run: |
wget https://github.com/gohugoio/hugo/releases/download/v0.125.0/hugo_extended_0.125.0_linux-amd64.deb
sudo apt install ./hugo_extended_0.125.0_linux-amd64.deb
- name: install theme
run: git submodule update --init --recursive
- name: patch config
run: git apply .github/workflows/config.patch
- name: make
run: make
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public