-
-
Notifications
You must be signed in to change notification settings - Fork 410
32 lines (30 loc) · 1011 Bytes
/
gh-pages.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
name: Build and deploy Github pages
on:
push:
branches:
- master
paths:
- "docs/**"
- "gen-docs.js"
- "src/widgets/widget_definitions.rs"
- ".github/workflows/**"
jobs:
build:
name: shalzz/zola-deploy-action
runs-on: ubuntu-latest
steps:
# Checkout
- uses: actions/checkout@master
# Build widget documentation
- name: Use deno to build widget documentation
uses: denoland/setup-deno@main
with:
deno-version: "v1.x"
- run: deno run --allow-read gen-docs.ts ./src/widgets/widget_definitions.rs >> ./docs/content/main/widgets.md
# Build & deploy
- name: shalzz/zola-deploy-action
uses: shalzz/[email protected]
env:
PAGES_BRANCH: gh-pages
BUILD_DIR: docs
TOKEN: ${{ secrets.TOKEN }}