forked from OpenEnroth/OpenEnroth
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (37 loc) · 1.03 KB
/
build_data_cache.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
name: Populate Data Cache
on:
schedule:
# schedule build once per day
- cron: "6 11 * * *"
workflow_dispatch: # Allow to manually run a workflow
jobs:
build_data_cache:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
configuration: [Release]
architecture: [x64]
steps:
- name: Check for data cache
id: check-for-data-cache
uses: actions/cache/restore@v3
with:
path: |
OpenEnroth_GameData
key: data-cache
- name: Checkout private data
if: steps.check-for-data-cache.outputs.cache-hit != 'true'
uses: actions/checkout@v3
with:
repository: OpenEnroth/OpenEnroth_GameData
path: OpenEnroth_GameData
lfs: 'true' # .vid files are stored in LFS.
token: '${{secrets.DATA_ACCESS_TOKEN}}'
- name: Cache data
if: steps.check-for-data-cache.outputs.cache-hit != 'true'
uses: actions/cache/save@v3
with:
path: |
OpenEnroth_GameData
key: data-cache