-
Notifications
You must be signed in to change notification settings - Fork 2
63 lines (51 loc) · 1.57 KB
/
deploy.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
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
- uses: actions/checkout@v4
with:
repository: 'darklab8/fl-data'
path: '${{ github.workspace }}/fl-data'
token: ${{ secrets.FL_DATA_KEY }}
- run: ls ./fl-data
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.21
- name: Install Task
run: |
sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -d -b /usr/local/bin
- name: Install templ
run: go install github.com/a-h/templ/cmd/templ@v0.2.543
- name: Build templ file to go
run: templ generate
- name: Test things
run: task test -- -v
env:
FLDARKDATA_LOG_LEVEL: "DEBUG"
- name: build
run: task build
env:
SITE_ROOT: "/fl-darkstat/"
FLDARKSTAT_FREELANCER_FOLDER: ${{ github.workspace }}/fl-data
FLDARKSTAT_HEADING: "Development environment version for darkstat | <a href=\"https://github.com/darklab8/fl-darkstat\">Github</a>"
- uses: actions/upload-pages-artifact@v1
with:
name: github-pages
path: ./build
- name: Deploy to pages
uses: actions/deploy-pages@v1
id: deployment