blob: 98595e42799f14ffacdf9bf4e5478704a1c9e958 (
plain) (
blame)
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: Hugo build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build webring
run: |
git clone https://git.sr.ht/~sircmpwn/openring
cd openring
go build -o openring
sudo cp openring /usr/local/bin/
cd ..
./create-webring.sh
- name: Reconfig
run: sed -i "s/huyngo.srht.site/huy-ngo.github.io/" config.toml
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: 'latest'
- name: Build
run: hugo --minify
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public
|