Files
gitea-docs/.gitea/workflows/test.yaml
techknowlogick 18fa94cb73 Add awesome list to docs (#37)
Reviewed-on: https://gitea.com/gitea/gitea-docusaurus/pulls/37
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Co-committed-by: techknowlogick <techknowlogick@gitea.io>
2023-06-29 18:03:46 +00:00

39 lines
956 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
- 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: cleanup before build
run: |
rm static/_*
- name: build site
run: |
npm ci
npm run build