-
Notifications
You must be signed in to change notification settings - Fork 6
47 lines (40 loc) · 1.28 KB
/
deploy_website.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: deploy_language_referemce
on:
push:
branches:
- master
paths:
- '.github/workflows/deploy_website.yml'
- 'teachprogramming/lib/**'
- 'teachprogramming/static/language_reference/**'
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- name: compile_and_run_languages
run: (cd teachprogramming/static/language_reference && make build_and_run)
- name: build_static
run: (cd teachprogramming/lib && make build_static)
- name: scp_api
uses: appleboy/scp-action@master
timeout-minutes: 1
with:
host: computingteachers.uk
username: computingteachers
key: ${{ secrets.DEPLOY_SSH_KEY }}
source: "teachprogramming/lib/api/v1"
strip_components: 3
target: "computingteachers.uk/api"
command_timeout: 1m
- name: scp_static
uses: appleboy/scp-action@master
timeout-minutes: 1
with:
host: computingteachers.uk
username: computingteachers
key: ${{ secrets.DEPLOY_SSH_KEY }}
source: "teachprogramming/lib/static"
strip_components: 2
target: "computingteachers.uk"
command_timeout: 1m