-
Notifications
You must be signed in to change notification settings - Fork 2
129 lines (127 loc) · 3.61 KB
/
release.yml
File metadata and controls
129 lines (127 loc) · 3.61 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
name: Automatic Release
on:
push:
tags:
- "v*"
jobs:
windows-x64-build:
name: Windows x64 build
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: '5.0.x'
- name: Build
run: dotnet publish --runtime win-x64 --configuration Release
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: win-x64
path: TtxFromTS/bin/Release/net5.0/win-x64/publish
retention-days: 7
windows-x86-build:
name: Windows x86 build
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: '5.0.x'
- name: Build
run: dotnet publish --runtime win-x86 --configuration Release
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: win-x86
path: TtxFromTS/bin/Release/net5.0/win-x86/publish
retention-days: 7
windows-arm-build:
name: Windows ARM build
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: '5.0.x'
- name: Build
run: dotnet publish --runtime win-arm64 --configuration Release
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: win-arm64
path: TtxFromTS/bin/Release/net5.0/win-arm64/publish
retention-days: 7
macos-build:
name: macOS build
runs-on: macos-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: '5.0.x'
- name: Build
run: dotnet publish --runtime osx-x64 --configuration Release
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: macos-x64
path: TtxFromTS/bin/Release/net5.0/osx-x64/publish
retention-days: 7
linux-x64-build:
name: Linux x64 build
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: '5.0.x'
- name: Build
run: dotnet publish --runtime linux-x64 --configuration Release
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: linux-x64
path: TtxFromTS/bin/Release/net5.0/linux-x64/publish
retention-days: 7
linux-arm-build:
name: Linux ARM build
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: '5.0.x'
- name: Build
run: dotnet publish --runtime linux-arm --configuration Release
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: linux-arm
path: TtxFromTS/bin/Release/net5.0/linux-arm/publish
retention-days: 7
create-release:
name: Release Application
runs-on: ubuntu-latest
needs: [windows-x64-build, windows-x86-build, windows-arm-build, macos-build, linux-x64-build, linux-arm-build]
steps:
- name: Download Artifacts
uses: actions/download-artifact@v2
- name: Create Release
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
prerelease: false
files: '*/*.zip'