-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (29 loc) · 780 Bytes
/
main.yml
File metadata and controls
35 lines (29 loc) · 780 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
name: Main
on:
push:
branches:
- main
jobs:
deploy:
name: Build and Deploy
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0 # Hugo uses Git information to fetch .Lastmod information (enableGitInfo).
- name: Setup Python 3.x
uses: actions/setup-python@v2
with:
python-version: 3.x
- name: Install Python dependencies
run: pip install -r requirements.txt
- name: Build
run: make build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
force_orphan: true
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: html
publish_dir: ./public