forked from solana-labs/solana
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (45 loc) · 1.03 KB
/
docs.yml
File metadata and controls
51 lines (45 loc) · 1.03 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
name: docs
on:
push:
branches:
- master
- v[0-9]+.[0-9]+
paths:
- "docs/**"
tags:
- "*"
pull_request:
branches:
- master
- v[0-9]+.[0-9]+
jobs:
docs-build:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Check
run: |
source ci/env.sh
ci/channel_restriction.sh edge beta
- name: Get specific changed files
id: changed-files-specific
uses: tj-actions/changed-files@v19
with:
files: |
docs/**
- name: Setup Node
if: steps.changed-files-specific.outputs.any_changed == 'true'
uses: actions/setup-node@v3
with:
node-version: 14
- name: Build
if: steps.changed-files-specific.outputs.any_changed == 'true'
working-directory: docs
run: |
npm install
./build.sh
env:
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}