-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (49 loc) · 1.22 KB
/
build-reference.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
49
50
51
---
name: Build reference
"on":
workflow_dispatch:
push:
paths:
- .github/workflows/build-reference.yml
- Containerfile
- main.py
- output/*
- scripts/*
- templates/*
branches:
- main
pull_request:
paths:
- .github/workflows/build-reference.yml
- Containerfile
- main.py
- output/*
- scripts/*
- templates/*
jobs:
build-reference:
runs-on: ubuntu-latest
strategy:
matrix:
openstack_version:
- wallaby
steps:
- name: Checkout code
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- name: Install requirements
run: pip install -r requirements.txt
- name: Build documentation
run: scripts/build.sh
env:
VERSION: ${{ matrix.openstack_version }}
- name: Upload documentation
uses: SamKirkland/FTP-Deploy-Action@v4.3.4
with:
local-dir: build/html/
password: ${{ secrets.FTP_PASSWORD }}
protocol: ftps
security: strict
server-dir: /
server: ${{ secrets.FTP_SERVER }}
username: ${{ secrets.FTP_USERNAME }}
if: github.ref == 'refs/heads/main'