-
-
Notifications
You must be signed in to change notification settings - Fork 152
46 lines (44 loc) · 1.56 KB
/
build_and_deploy.yaml
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
name: Build and deploy to https://docs.contao.org
on:
push:
branches:
- main
workflow_dispatch: ~
jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.132.1'
- name: Build user manual
run: make build-manual
- name: Build developer manual
run: make build-dev
- name: Deploy user manual
uses: appleboy/scp-action@master
with:
host: ${{ secrets.DEPLOY_HOST }}
username: ${{ secrets.DEPLOY_USERNAME }}
port: ${{ secrets.DEPLOY_PORT }}
key: ${{ secrets.DEPLOY_KEY }}
source: 'build/manual'
target: ${{ secrets.DEPLOY_TARGET_PATH }}/manual
rm: true
strip_components: 2
- name: Deploy developer manual
uses: appleboy/scp-action@master
with:
host: ${{ secrets.DEPLOY_HOST }}
username: ${{ secrets.DEPLOY_USERNAME }}
port: ${{ secrets.DEPLOY_PORT }}
key: ${{ secrets.DEPLOY_KEY }}
source: 'build/dev'
target: ${{ secrets.DEPLOY_TARGET_PATH }}/dev
rm: true
strip_components: 2