-
-
Notifications
You must be signed in to change notification settings - Fork 141
47 lines (37 loc) · 1.14 KB
/
docs-multiversion.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Build multiversion docs
on:
push:
branches: [ "master" ]
tags: [ "v*", "V*"]
env:
GITHUB_REPOSITORY: ${{ github.repository }}
GITHUB_REF: ${{ github.ref }}
jobs:
build-multiversion:
if: github.repository == 'DragonOS-Community/DragonOS'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: master
- name: install requirements
working-directory: ./docs
run: |
sudo apt-get update
sudo apt-get install -y python3-pip python3-setuptools
pip3 install -r requirements.txt
python3 -m pip install --user awscli
- name: build docs
working-directory: ./docs
shell: bash -ileo pipefail {0}
run: |
make html-multiversion
- name: deploy docs
working-directory: ./docs
env:
AWS_ENDPOINT_URL: ${{ secrets.DOCS_DEPLOY_S3_ENDPOINT_URL }}
AWS_ACCESS_KEY_ID: ${{ secrets.DOCS_DEPLOY_S3_API_KEY }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.DOCS_DEPLOY_S3_SECRET_KEY }}
run: |
aws s3 sync ./_build/html s3://dragonos-docs --delete --exclude "p/*"