-
-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (38 loc) · 1004 Bytes
/
build.yaml
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
on:
push:
branches:
- master
repository_dispatch:
types: [release]
schedule:
- cron: '0 0,6,12,18 * * *'
jobs:
release-site:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.2.2
with:
fetch-depth: 0
- uses: actions/setup-java@v4.7.0
with:
distribution: temurin
java-version: 21
- uses: gradle/actions/setup-gradle@v4.3.0
- name: Build
timeout-minutes: 25
run: ./gradlew check
- name: Setup Hugo
uses: peaceiris/actions-hugo@v3.0.0
with:
hugo-version: 'latest'
extended: true
- name: Build
run: hugo --minify -s src/website
- name: Deploy
uses: peaceiris/actions-gh-pages@v4.0.0
with:
personal_token: ${{ secrets.TOOLBOX_REPO_TOKEN }}
external_repository: http4k/http4k.github.io
publish_branch: master
publish_dir: build/www
cname: www.http4k.org