-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (47 loc) · 1.33 KB
/
Copy pathdocs.yaml
File metadata and controls
49 lines (47 loc) · 1.33 KB
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
48
49
name: Create Documents
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-versions: [3.14]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-versions }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-versions }}
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install pipenv
pipenv install --dev
- name: Build
env:
AWS_DEFAULT_REGION: ${{ secrets.AWS_REGION }}
run: |
pipenv run convert-docs
pipenv run build-docs
- name: Deploy Configuration
run: |
mkdir ~/.ssh
ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts
echo "${{ secrets.DEPLOY_KEY }}" > ~/.ssh/id_rsa
chmod 400 ~/.ssh/id_rsa
- name: Push
env:
GITHUB_USER: "builduser"
GITHUB_EMAIL: "test.builduser@example.com"
run: |
git config --local user.name "${GITHUB_USER}"
git config --local user.email "${GITHUB_EMAIL}"
git remote set-url origin git@github.com:${GITHUB_REPOSITORY}.git
git switch -c docs
git add docs
git commit -m ":memo: docs(sphinx): auto rebuilding site"
git push -f origin docs