Files
docs/.gitea/workflows/test.yaml
T
HesterG 7ca358b43e Add v1.20 documentation (#28)
Modified `loop_docs.sh` to take `version` and `locale` and params so do not need other `loop_docs*` scripts.

Need confirmation with version information for 1.20 and latest.
Like version in `static/20-swagger.json` and `static/latest-swagger.json`, and version used to replace `{{< version >}}`

Will wait for a stable version for 1.20

![Screen Shot 2023-06-14 at 12.12.18](/attachments/1b316978-0daf-46bb-90a7-632a0fc80898)

Reviewed-on: https://gitea.com/gitea/gitea-docusaurus/pulls/28
Reviewed-by: Lunny Xiao <[email protected]>
Co-authored-by: HesterG <[email protected]>
Co-committed-by: HesterG <[email protected]>
2023-06-14 07:05:13 +00:00

37 lines
858 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: 16
- name: install necessary tools
run: |
apt update -y && apt install -y rsync python python3-pip
pip install awscli
- 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: cleanup before build
run: |
rm static/_*
- name: build site
run: |
npm ci
npm run build