-
Notifications
You must be signed in to change notification settings - Fork 2
138 lines (119 loc) · 7.15 KB
/
release.yml
File metadata and controls
138 lines (119 loc) · 7.15 KB
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
name: Make Release
on:
push:
tags:
- v*.*.*
jobs:
Release-Linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.x
- name: Restore dependencies
run: dotnet restore
- name: Publish Linux-x64-without-runtime
run: dotnet publish -p:PublishReadyToRun=true --configuration Release --no-self-contained --runtime linux-x64 --framework net5.0 -o ./build/linux-x64-without-runtime
- name: Publish Linux-x64
run: dotnet publish -p:PublishReadyToRun=true --configuration Release --self-contained true --runtime linux-x64 --framework net5.0 -o ./build/linux-x64
- name: Publish Linux-arm-without-runtime
run: dotnet publish -p:PublishReadyToRun=true --configuration Release --no-self-contained --runtime linux-arm --framework net5.0 -o ./build/linux-arm-without-runtime
- name: Publish Linux-arm
run: dotnet publish -p:PublishReadyToRun=true --configuration Release --self-contained true --runtime linux-arm --framework net5.0 -o ./build/linux-arm
- name: Publish Linux-arm64-without-runtime
run: dotnet publish -p:PublishReadyToRun=true --configuration Release --no-self-contained --runtime linux-arm64 --framework net5.0 -o ./build/linux-arm64-without-runtime
- name: Publish Linux-arm64
run: dotnet publish -p:PublishReadyToRun=true --configuration Release --self-contained true --runtime linux-arm64 --framework net5.0 -o ./build/linux-arm64
- name: Pack Linux-x64-without-runtime
run: tar -czvf linux-x64-without-runtime.tar.gz -C ~/work/MorePracticeMalodyServer/MorePracticeMalodyServer/build linux-x64-without-runtime
- name: Pack Linux-x64
run: tar -czvf linux-x64.tar.gz -C ~/work/MorePracticeMalodyServer/MorePracticeMalodyServer/build linux-x64
- name: Pack Linux-arm-without-runtime
run: tar -czvf linux-arm-without-runtime.tar.gz -C ~/work/MorePracticeMalodyServer/MorePracticeMalodyServer/build linux-arm-without-runtime
- name: Pack Linux-arm
run: tar -czvf linux-arm.tar.gz -C ~/work/MorePracticeMalodyServer/MorePracticeMalodyServer/build linux-arm
- name: Pack Linux-arm64-without-runtime
run: tar -czvf linux-arm64-without-runtime.tar.gz -C ~/work/MorePracticeMalodyServer/MorePracticeMalodyServer/build linux-arm64-without-runtime
- name: Pack Linux-arm64
run: tar -czvf linux-arm64.tar.gz -C ~/work/MorePracticeMalodyServer/MorePracticeMalodyServer/build linux-arm64
- name: Upload release files
uses: softprops/action-gh-release@v1
with:
files: |
linux-x64-without-runtime.tar.gz
linux-x64.tar.gz
linux-arm-without-runtime.tar.gz
linux-arm.tar.gz
linux-arm64-without-runtime.tar.gz
linux-arm64.tar.gz
token: ${{ secrets.RELEASE_TOKEN }}
Release-Windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.x
- name: Restore dependencies
run: dotnet restore
- name: Publish Win-x64-without-runtime
run: dotnet publish -p:PublishReadyToRun=true --configuration Release --no-self-contained --runtime win-x64 --framework net5.0 -o ./build/win-x64-without-runtime
- name: Publish Win-x64
run: dotnet publish -p:PublishReadyToRun=true --configuration Release --self-contained true --runtime win-x64 --framework net5.0 -o ./build/win-x64
- name: Publish Win-x86-without-runtime
run: dotnet publish -p:PublishReadyToRun=true --configuration Release --no-self-contained --runtime win-x86 --framework net5.0 -o ./build/win-x86-without-runtime
- name: Publish Win-x86
run: dotnet publish -p:PublishReadyToRun=true --configuration Release --self-contained true --runtime win-x86 --framework net5.0 -o ./build/win-x86
- name: Publish Win-arm-without-runtime
run: dotnet publish -p:PublishReadyToRun=true --configuration Release --no-self-contained --runtime win-arm --framework net5.0 -o ./build/win-arm-without-runtime
- name: Publish Win-arm
run: dotnet publish -p:PublishReadyToRun=true --configuration Release --self-contained true --runtime win-arm --framework net5.0 -o ./build/win-arm
- name: Publish Win10-x64-without-runtime
run: dotnet publish -p:PublishReadyToRun=true --configuration Release --no-self-contained --runtime win10-x64 --framework net5.0 -o ./build/win10-x64-without-runtime
- name: Publish Win10-x64
run: dotnet publish -p:PublishReadyToRun=true --configuration Release --self-contained true --runtime win10-x64 --framework net5.0 -o ./build/win10-x64
- name: Publish Win10-arm64-without-runtime
run: dotnet publish -p:PublishReadyToRun=true --configuration Release --no-self-contained --runtime win10-arm64 --framework net5.0 -o ./build/win10-arm64-without-runtime
- name: Publish Win10-arm64
run: dotnet publish -p:PublishReadyToRun=true --configuration Release --self-contained true --runtime win10-arm64 --framework net5.0 -o ./build/win10-arm64
- name: Pack Win-x64-without-runtime
run: 7z a win-x64-without-runtime.7z D:\a\MorePracticeMalodyServer\MorePracticeMalodyServer\build\win-x64-without-runtime\
- name: Pack Win-x64
run: 7z a win-x64.7z D:\a\MorePracticeMalodyServer\MorePracticeMalodyServer\build\win-x64\
- name: Pack Win-x86-without-runtime
run: 7z a win-x86-without-runtime.7z D:\a\MorePracticeMalodyServer\MorePracticeMalodyServer\build\win-x86-without-runtime\
- name: Pack Win-x86
run: 7z a win-x86.7z D:\a\MorePracticeMalodyServer\MorePracticeMalodyServer\build\win-x86\
- name: Pack Win-arm-without-runtime
run: 7z a win-arm-without-runtime.7z D:\a\MorePracticeMalodyServer\MorePracticeMalodyServer\build\win-arm-without-runtime\
- name: Pack Win-arm
run: 7z a win-arm.7z D:\a\MorePracticeMalodyServer\MorePracticeMalodyServer\build\win-arm\
- name: Pack Win10-x64-without-runtime
run: 7z a win10-x64-without-runtime.7z D:\a\MorePracticeMalodyServer\MorePracticeMalodyServer\build\win10-x64-without-runtime\
- name: Pack Win10-x64
run: 7z a win10-x64.7z D:\a\MorePracticeMalodyServer\MorePracticeMalodyServer\build\win10-x64\
- name: Pack Win10-arm64-without-runtime
run: 7z a win10-arm64-without-runtime.7z D:\a\MorePracticeMalodyServer\MorePracticeMalodyServer\build\win10-arm64-without-runtime\
- name: Pack Win10-arm64
run: 7z a win10-arm64.7z D:\a\MorePracticeMalodyServer\MorePracticeMalodyServer\build\win10-arm64\
- name: Changelog
uses: glennawatson/ChangeLog@v1
id: changelog
- name: Upload release files
uses: softprops/action-gh-release@v1
with:
body: |
${{ steps.Changelog.outputs.changelog }}
files: |
win-x64-without-runtime.7z
win-x64.7z
win-x86-without-runtime.7z
win-x86.7z
win10-x64-without-runtime.7z
win10-x64.7z
win10-arm64-without-runtime.7z
win10-arm64.7z
token: ${{ secrets.RELEASE_TOKEN }}