-
Notifications
You must be signed in to change notification settings - Fork 5
42 lines (31 loc) · 926 Bytes
/
main.yml
File metadata and controls
42 lines (31 loc) · 926 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
40
41
name: Deploy site to GitHub Pages
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Build Docker image
run: docker build -t hugo-builder .
- name: Convert .tex to .svg
run: docker run -v ${{ github.workspace }}:/workspace hugo-builder make -j -C /workspace
- name: Set permissions for GitHub Actions
run: sudo chown -R $USER:$USER $GITHUB_WORKSPACE
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.125.7'
extended: true
- name: Build site
run: hugo --minify
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public