-
Notifications
You must be signed in to change notification settings - Fork 1
57 lines (50 loc) · 1.57 KB
/
build-stable.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
47
48
49
50
51
52
53
54
55
56
57
on:
push:
branches: [ main, master ]
paths: [ inst/docker/Dockerfile, .github/workflows/build-stable.yaml ]
pull_request:
branches: [ main, master ]
paths: [ inst/docker/Dockerfile, .github/workflows/build-stable.yaml ]
schedule:
- cron: "0 0,12 * * *"
name: Production Build
jobs:
build-production:
runs-on: ubuntu-20.04
container: paleolimbot/bsrto-builder:latest
env:
R_BSRTO_FTP_SERVER: ${{ secrets.BSRTO_FTP_SERVER_ADDRESS }}
steps:
- name: Cache BSRTO downloads
uses: actions/cache@v2
with:
path: /bsrto/cache
restore-keys: bsrto-cache-dir-2
key: bsrto-cache-dir-3
- name: Cache built raw data
uses: actions/cache@v2
with:
path: /bsrto/build-cache
key: bsrto-build-cache-dir-5
- name: Build updated data
run: |
bsrto::bs_build_realtime("/bsrto/built")
navigator_file <- bsrto::bs_build_navigator("/bsrto/built")
bsrto::bs_check_navigator(navigator_file)
shell: Rscript {0}
- name: Deploy Navigator
if: github.event_name != 'pull_request'
run: |
echo "This is where the navigator file would be deployed to some server"
- name: Upload build cache
if: always()
uses: actions/upload-artifact@main
with:
name: bsrto-build-cache
path: /bsrto/build-cache
- name: Upload built data
if: always()
uses: actions/upload-artifact@main
with:
name: bsrto-built
path: /bsrto/built