Skip to content

[oss] github actions to deploy docs site #1

[oss] github actions to deploy docs site

[oss] github actions to deploy docs site #1

Workflow file for this run

name: Test Docs
on:
pull_request:
branches:
- main
# Review gh actions docs if you want to further define triggers, paths, etc
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on
jobs:
deploy:
name: Test docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: 18
cache: yarn
- name: Install dependencies
run: yarn install --frozen-lockfile
working-directory: ./antlir/antlir2/docs
- name: Build website
run: yarn build
working-directory: ./antlir/antlir2/docs
- name: Archive docs build
uses: actions/upload-artifact@v4
with:
name: docs
path: antlir/antlir2/docs/build