-
Notifications
You must be signed in to change notification settings - Fork 20
51 lines (42 loc) · 1008 Bytes
/
page-main.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
name: Push to GitHub Pages on push to main
on:
push:
branches:
- main
- publish-*
workflow_dispatch:
schedule: # Run every Monday morning
- cron: '20 6 * * 1'
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
deploy:
name: Deploy to GitHub Pages
runs-on: ubuntu-latest
environment: github-pages
steps:
- uses: actions/checkout@v3
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: 'latest'
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: 'stable'
- name: Build
run: ./build.sh
env:
GITHUB_TOKEN: ${{ secrets.ORGANISATION_TOKEN }}
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: '_site'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2