mirror of
https://github.com/facebook/docusaurus.git
synced 2025-12-31 15:42:48 +00:00
Merge pull request #2100 from facebook/endiliey-windows
chore: docusaurus build on Windows with GitHub actions
This commit is contained in:
commit
3246939539
|
|
@ -0,0 +1,32 @@
|
|||
name: Docusaurus on Windows
|
||||
|
||||
on:
|
||||
# Trigger the workflow on push or pull request,
|
||||
# but only for the master branch
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
pull_request:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: windows-2019
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [8.x]
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: Use Node.js ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
- name: Installation
|
||||
run: yarn
|
||||
- name: Docusaurus 1 Build
|
||||
run: yarn build:v1
|
||||
- name: Docusaurus 2 Build
|
||||
run: yarn build:v2
|
||||
env:
|
||||
CI: true
|
||||
Loading…
Reference in New Issue