solana/.github/workflows/docs.yml

52 lines
1.0 KiB
YAML
Raw Normal View History

name: docs
on:
push:
branches:
- master
- v[0-9]+.[0-9]+
paths:
- "docs/**"
tags:
- "*"
pull_request:
branches:
- master
- v[0-9]+.[0-9]+
jobs:
2022-05-05 23:42:05 -07:00
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 }}