-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (34 loc) · 1003 Bytes
/
Copy pathdeploy.yml
File metadata and controls
42 lines (34 loc) · 1003 Bytes
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
name: Deploy Website
on:
push:
branches: [main]
repository_dispatch:
types: [docs-updated, release-published]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout website
uses: actions/checkout@v4
- name: Checkout DevStackBox (docs + policy files)
uses: actions/checkout@v4
with:
repository: DevStackBox/DevStackBox
path: devstackbox
ref: main
- uses: pnpm/action-setup@v4
with:
version: 9
- uses: actions/setup-node@v4
with:
node-version: "20"
cache: "pnpm"
- run: pnpm install
- name: Build
env:
DEVSTACKBOX_ROOT: ${{ github.workspace }}/devstackbox
GITHUB_REPO: DevStackBox/DevStackBox
run: pnpm build
# Connect this repo to Netlify for production deploys (see netlify.toml).
# Optional: add NETLIFY_AUTH_TOKEN and NETLIFY_SITE_ID secrets to deploy from CI.