-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (36 loc) · 1.1 KB
/
gomod.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
name: GOMOD Build CI
on:
push:
branches: [ main ]
schedule:
- cron: "20 22 * * *"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 1.19.x
- run: go version
- name: Install GOMOD
run: go install go.x2ox.com/sorbifolia/gomod/[email protected]
- name: Build
run: gomod -f data.json
- name: Add public resource
run: |
cp -r public/* go.x2ox.com
- name: Install Sitemap Generator
run: go install go.x2ox.com/sorbifolia/sitemap/[email protected]
- name: Generate Sitemap
run: |
sitemap-generator -f sitemap.config.json
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: go.x2ox.com
cname: go.x2ox.com
keep_files: true
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'