forked from bachingo/TF2Vintage
-
Notifications
You must be signed in to change notification settings - Fork 11
59 lines (52 loc) · 1.36 KB
/
release.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
48
49
50
51
52
53
54
55
56
57
58
59
name: Release
on:
push:
paths:
- 'src/**'
- 'game/tf2vintage/**'
pull_request:
paths:
- 'src/**'
- 'game/tf2vintage/**'
workflow_dispatch:
env:
STEAM_RUNTIME_PATH: /valve/steam-runtime
CCACHE_VERSION: 4.2.1
CCACHE_DIR: ${{ github.workspace }}/src/ccache
jobs:
build-windows:
uses: ./.github/workflows/windows.yml
# build-linux:
# uses: ./.github/workflows/linux.yml
build-game:
needs: [build-windows] #, build-linux]
runs-on:
ubuntu-20.04
steps:
- name: Checkout game assets
uses: actions/checkout@v2
- name: Download Windows Binary
uses: actions/download-artifact@v3
with:
name: tf2vintage-windows
path: game/tf2vintage/bin/
# - name: Download Linux Binary
# uses: actions/download-artifact@v3
# with:
# name: tf2vintage-linux
# path: game/tf2vintage/bin/
- name: Pack [7z]
uses: edgarrc/action-7z@v1
with:
args: 7z a -t7z -mx=9 tf2vintage.7z ./game/tf2vintage/
- name: Upload product [7z]
uses: actions/upload-artifact@v3
with:
name: tf2vintage
path: tf2vintage.7z
- name: Clean up leftover binaries
uses: geekyeggo/delete-artifact@v1
with:
name: |
tf2vintage-windows
# tf2vintage-linux