-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (34 loc) · 953 Bytes
/
build.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
37
38
39
40
41
42
name: CI
on:
push:
branches: ["master"]
jobs:
github-pages:
name: Github Pages
runs-on: ubuntu-22.04
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Check out source repository
uses: actions/checkout@v2
- name: Set up Go
uses: darklab8/infra/.github/actions/install-go@master
- name: Install Taskfile
uses: darklab8/infra/.github/actions/install-taskfile@master
- name: Install Templ
uses: darklab8/infra/.github/actions/install-templ@master
- name: build
run: task build
env:
SITE_ROOT: "/blog/"
- uses: actions/upload-pages-artifact@v1
with:
name: github-pages
path: ./build
- name: Deploy to pages
uses: actions/deploy-pages@v1
id: deployment