-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (55 loc) · 1.46 KB
/
static.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
49
50
51
52
53
54
55
56
# ~~ Generated by projen. To modify, edit .projenrc.ts and run "pnpm exec projen".
name: static
on:
push:
branches:
- main
workflow_dispatch: {}
concurrency: pages
jobs:
deploy:
name: deploy
runs-on: ubuntu-latest
permissions:
contents: read
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
env:
NX_NON_NATIVE_HASHER: "true"
NX_BRANCH: ${{ github.event.number }}
NX_RUN_GROUP: ${{ github.run_id }}
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
CI: "true"
GIGET_AUTH: ${{ secrets.GH_CONFIGS_RO_PAT }}
CCU_CONFIGS_DECRYPT: "false"
SKIP_SYNTH: "1"
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup PNPM
uses: pnpm/action-setup@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "18"
cache: pnpm
- name: Install Dependencies
run: pnpm install --no-frozen-lockfile
- name: Build
run: pnpm build
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Generate Docs
run: pnpm docgen
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: docs
- name: Deploy to Github Pages
id: deployment
uses: actions/deploy-pages@v2
env:
NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}