-
Notifications
You must be signed in to change notification settings - Fork 36
48 lines (40 loc) · 1.04 KB
/
PDF.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: PDF
on:
workflow_dispatch:
workflow_run:
branches: [master]
workflows: [Deploy]
types: completed
permissions:
contents: write
jobs:
Build:
name: Build
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v3
with:
version: latest
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "*"
check-latest: true
cache: "pnpm"
cache-dependency-path: pnpm-lock.yaml
- name: Install node_modules
run: |
pnpm install --frozen-lockfile
pnpm puppeteer browsers install chrome
- name: Build PDF
run: |
pnpm pdf
- name: Release
run: |
gh release delete surge-xt-manual -y
gh release create surge-xt-manual dist/Surge-XT-Manual.pdf -t "Surge XT Manual" -n "PDF version of the Surge XT Manual"