Files
docs/.gitea/workflows/test.yaml
T
silverwind d3697c65d2 Run both workflows on node 18 (#68)
Should also fix the build failure on main under node 20:

https://github.com/facebook/docusaurus/issues/9278

Reviewed-on: https://gitea.com/gitea/gitea-docusaurus/pulls/68
Reviewed-by: techknowlogick <[email protected]>
Co-authored-by: silverwind <[email protected]>
Co-committed-by: silverwind <[email protected]>
2023-09-07 21:26:20 +00:00

35 lines
863 B
YAML

name: checks
on:
- pull_request
jobs:
build-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: https://github.com/actions/setup-node@v3
with:
node-version: 18
- name: install necessary tools
run: |
apt update -y && apt install -y rsync python python3-pip
- name: prepare nightly docs
run: |
make prepare-latest
make prepare-latest-zh-cn
- name: prepare 1.20 docs
run: |
make prepare\#20
make prepare-zh-cn\#20
- name: prepare 1.19 docs
run: |
make prepare\#19
make prepare-zh-cn\#19
- name: prepare awesome list
run: |
make prepare-awesome-latest prepare-awesome\#20 prepare-awesome\#19
- name: build site
run: |
make build