-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (62 loc) · 1.68 KB
/
docs.yml
File metadata and controls
63 lines (62 loc) · 1.68 KB
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
52
53
54
55
56
57
58
59
60
61
62
63
name: Deploy Docs
on:
push:
branches:
- "main"
workflow_dispatch:
jobs:
build:
name: Build Docs
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[docs]')"
steps:
-
name: "Checkout Repo"
uses: actions/checkout@master
-
name: "Setup Node v16"
uses: actions/setup-node@master
with:
node-version: 16
-
name: "(env) pnpm"
run: curl -L https://pnpm.js.org/pnpm.js | node - add --global pnpm
-
name: "(env) cache"
uses: actions/cache@master
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-${{ matrix.nodejs }}-${{ hashFiles('**/package.json') }}
restore-keys: ${{ runner.os }}-${{ matrix.nodejs }}-
-
name: "Install"
run: pnpm install -C docs
-
name: "Compile"
run: pnpm build -C docs
-
name: "Import GPG"
uses: crazy-max/ghaction-import-gpg@v3
with:
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.GPG_PASSPHRASE }}
git-user-signingkey: true
git-config-global: true
git-commit-gpgsign: true
git-tag-gpgsign: true
-
if: success()
name: "Commit + Deploy"
uses: crazy-max/ghaction-github-pages@v2.6.0
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
with:
author: "Nicholas Berlette <nick@berlette.com>"
committer: "Nicholas Berlette <nick@berlette.com>"
commit_message: "[docs]: 🚀 deploy documentation"
target_branch: docs
build_dir: "docs/.vitepress/dist"
keep_history: true
dry_run: false
verbose: true
jekyll: false