2022-05-05 21:14:50 -07:00
|
|
|
name: docs
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
- v[0-9]+.[0-9]+
|
2022-05-05 21:18:51 -07:00
|
|
|
paths:
|
|
|
|
- "docs/**"
|
2022-05-05 21:14:50 -07:00
|
|
|
tags:
|
|
|
|
- "*"
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
- v[0-9]+.[0-9]+
|
|
|
|
|
|
|
|
jobs:
|
2022-05-05 23:42:05 -07:00
|
|
|
docs-build:
|
2022-05-05 21:14:50 -07:00
|
|
|
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
|
2022-05-05 23:32:38 -07:00
|
|
|
if: steps.changed-files-specific.outputs.any_changed == 'true'
|
2022-05-05 21:14:50 -07:00
|
|
|
uses: actions/setup-node@v3
|
|
|
|
with:
|
|
|
|
node-version: 14
|
|
|
|
|
|
|
|
- name: Build
|
2022-05-05 23:32:38 -07:00
|
|
|
if: steps.changed-files-specific.outputs.any_changed == 'true'
|
2022-05-05 21:14:50 -07:00
|
|
|
working-directory: docs
|
|
|
|
run: |
|
|
|
|
npm install
|
|
|
|
./build.sh
|
2022-05-08 20:29:36 -07:00
|
|
|
env:
|
|
|
|
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
|