forked from jamespetts/simutrans-pak128.britain
-
Notifications
You must be signed in to change notification settings - Fork 1
33 lines (30 loc) · 1 KB
/
deploy-live.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
name: Deploy live builds
on: push
jobs:
build:
uses: simutrans/simutrans-pak128.britain-ex/.github/workflows/build.yml@master
with:
pakset_ref: ${{ github.ref }}
upload:
runs-on: ubuntu-latest
needs: build
steps:
# Workarround: retrieve the cache key of the build.
- name: Download build metadata
uses: actions/download-artifact@v2
with:
name: build-metadata
- run: |
echo "pakset_sha=$(cat ./build-metadata.json | jq -r '.pakset_version')" >> $GITHUB_ENV
echo "simutrans_sha=$(cat ./build-metadata.json | jq -r '.makeobj_version')" >> $GITHUB_ENV
# End of workarround
- name: Load Build results from cache
uses: actions/cache@v2
with:
path: ./pak128.Britain-Ex
key: nightly-${{ env.pakset_sha }}@${{ env.simutrans_sha }}
- name: Upload build artifact
uses: actions/upload-artifact@v2
with:
name: pak128.britain-ex
path: pak128.Britain-Ex