-
Notifications
You must be signed in to change notification settings - Fork 9
36 lines (29 loc) · 894 Bytes
/
hugo.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
name: Hugo CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
deploy:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v1 # v2 does not have submodules option now
with:
submodules: true
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: 'latest'
# extended: true
- name: Build
run: |
hugo -s docs-src --minify
- name: Deploy updated documentation
run: |
git remote set-url origin https://AlanRace:${{ secrets.GITHUB_TOKEN }}@github.com/AlanRace/SpectralAnalysis.git
git config --global user.email "[email protected]"
git config --global user.name "AlanRace"
git add docs/*
git commit -m "Updated docs"
git push origin HEAD:master