-
-
Notifications
You must be signed in to change notification settings - Fork 84
31 lines (29 loc) · 965 Bytes
/
publish-docs.yaml
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
name: "Publish v3 docs"
on: [push]
env:
CLOUDFLARE_API_TOKEN: ${{secrets.CLOUDFLARE_API_TOKEN_V2}}
jobs:
publish-docs:
name: Publish docs
runs-on: ubuntu-latest
if: github.repository == 'pilcrowonpaper/arctic' && github.ref == 'refs/heads/main'
steps:
- name: setup actions
uses: actions/checkout@v4
- name: setup node
uses: actions/setup-node@v4
with:
node-version: 20.5.1
registry-url: https://registry.npmjs.org
- name: install malta
working-directory: docs
run: |
curl -o malta.tgz -L https://github.com/pilcrowonpaper/malta/releases/latest/download/linux-amd64.tgz
tar -xvzf malta.tgz
- name: build
working-directory: docs
run: ./linux-amd64/malta build
- name: install wrangler
run: npm i -g wrangler
- name: deploy
run: wrangler pages deploy docs/dist --project-name arctic --branch main