forked from CnCNet/WorldAlteringEditor
-
Notifications
You must be signed in to change notification settings - Fork 0
68 lines (53 loc) · 1.72 KB
/
release_publish.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
60
61
62
63
64
65
66
67
name: Publish compiled binaries in release
on:
release:
types: [published]
jobs:
release-tsclient:
runs-on: windows-latest
steps:
- uses: actions/[email protected]
with:
ref: tsclient
- name: Setup .NET Core SDK
uses: actions/[email protected]
with:
dotnet-version: '7.x.x'
- name: Build Editor
run: ./build.ps1
shell: pwsh
- name: Pack compiled binaries
run: 7z a -tzip -r WorldAlteringEditor_TSClient.zip "D:\a\TSMapEditor\TSMapEditor\Build\*.*"
- name: Upload compiled binaries
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: 'WorldAlteringEditor_TSClient.zip'
asset_name: WorldAlteringEditor_TSClient.zip
asset_content_type: application/zip
release-yr:
runs-on: windows-latest
steps:
- uses: actions/[email protected]
with:
ref: yr
- name: Setup .NET Core SDK
uses: actions/[email protected]
with:
dotnet-version: '7.x.x'
- name: Build Editor
run: ./build.ps1
shell: pwsh
- name: Pack compiled binaries
run: 7z a -tzip -r WorldAlteringEditor_YurisRevenge.zip "D:\a\TSMapEditor\TSMapEditor\Build\*.*"
- name: Upload compiled binaries
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: 'WorldAlteringEditor_YurisRevenge.zip'
asset_name: WorldAlteringEditor_YurisRevenge.zip
asset_content_type: application/zip