This repository was archived by the owner on Jul 25, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
74 lines (61 loc) · 1.48 KB
/
deploy.yml
File metadata and controls
74 lines (61 loc) · 1.48 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
64
65
66
67
68
69
70
71
72
73
74
name: Deploy on GH Pages
on:
push:
branches: [main]
paths:
- "**/CHANGELOG.md"
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
env:
PNPM_CACHE_FOLDER: .pnpm-store
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Setup Caching
uses: actions/cache@v2
with:
path: ${{ env.PNPM_CACHE_FOLDER }}
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-
- name: Setup PNPM
uses: pnpm/action-setup@v2
with:
version: 7.x.x
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 16.x
cache: "pnpm"
- name: Setup PNPM Config
run: pnpm config set store-dir $PNPM_CACHE_FOLDER
- name: Install Dependencies
run: pnpm i
- name: Build
run: pnpm build
- name: Install and Build
uses: withastro/action@v0
with:
path: ./apps/docs
package-manager: pnpm
resolve-dep-from-path: false
deploy:
name: Deploy
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: deploy
id: deployment
uses: actions/deploy-pages@v1