-
Notifications
You must be signed in to change notification settings - Fork 32
47 lines (38 loc) · 915 Bytes
/
docs.yml
File metadata and controls
47 lines (38 loc) · 915 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
---
# yaml-language-server: $schema=https://www.schemastore.org/github-workflow.json
name: docs
"on":
workflow_dispatch:
pull_request:
branches:
- master
push:
branches:
- master
permissions:
contents: write
jobs:
docs:
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v6
- name: Setup hugo
uses: peaceiris/actions-hugo@v3
with:
hugo-version: latest
extended: true
- name: Setup task
uses: arduino/setup-task@v2
with:
version: 3.x
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Run docs
run: task docs
- name: Deploy pages
if: github.event_name != 'pull_request'
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/public/
...