-
Notifications
You must be signed in to change notification settings - Fork 204
30 lines (29 loc) · 793 Bytes
/
Copy pathpages.yml
File metadata and controls
30 lines (29 loc) · 793 Bytes
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
name: Github Pages
on:
push:
branches: [ master ]
# Pull requests build the docs so breakage is caught before merge. They must
# never deploy: the Deploy step below is guarded on a push to master.
pull_request:
paths:
- 'docs/**'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- name: Set up Go
uses: actions/setup-go@v7
with:
go-version: 1.26
- name: Build 🔧
run: |
cd docs && make build
mv public ../
- name: Deploy 🚀
if: github.ref == 'refs/heads/master' && github.event_name == 'push'
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
BRANCH: gh-pages
FOLDER: public