blob: 46ee60b9c5134ce63b1d9b244e7b4cf95dbb16e9 (
plain)
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: only-build
on:
workflow_dispatch:
branches:
- master
schedule:
- cron: '0 3 * * *'
jobs:
build-hugo:
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: 'latest'
extended: true
- name: Setup Go
uses: actions/setup-go@v4.0.0
with:
go-version: '^1.21'
- name: SetUp Env
run: hugo new site testenv
- name: Set theme
uses: actions/checkout@v3
with:
path: ./testenv/themes/hugo-theme-shell
- name: Build
run: hugo --minify -t hugo-theme-shell
working-directory: ./testenv
|