-
Notifications
You must be signed in to change notification settings - Fork 44
48 lines (44 loc) · 1.38 KB
/
ci.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
48
name: Pull Request Checker
on:
pull_request:
jobs:
syntax-check:
name: Check syntax
runs-on: ubuntu-latest
container: python:3.11
continue-on-error: true
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Create virtual environment
run: make venv
- name: Syntax check
run: make check
build-check-and-preview-upload:
name: Check Build and Upload to Preview
runs-on: ubuntu-latest
container: python:3.11
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Create virtual environment
run: make venv
- name: Build documentation
run: |
make
cp -r redirects/.htaccess dist
- name: Upload quick build artifact
id: upload-quick
uses: actions/upload-artifact@v4
with:
name: generated documentation (en)
path: dist
include-hidden-files: true
- name: Trigger docs server to download artifact
uses: appleboy/[email protected]
with:
host: ${{ secrets.DOCS_HOST }}
username: docs
port: ${{ secrets.DOCS_PORT }}
key: ${{ secrets.DEPLOY_AUTH_KEY }}
script: /var/www/docs/deploy/gh-trigger.sh preview+${{ github.event.number }} ${{ steps.upload-quick.outputs.artifact-id }} ${{ secrets.DOWNLOAD_TOKEN }}