-
Notifications
You must be signed in to change notification settings - Fork 16
98 lines (96 loc) · 4.26 KB
/
CreateReleaseApps.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
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
name: Create Release Apps
on:
push:
branches: [ "latest" ]
jobs:
build-on-windows:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%Y-%m-%d')"
- name: Get branch name
id: branch-name
uses: tj-actions/[email protected]
- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: 6.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Test
run: dotnet test --no-build --verbosity normal
- name: Publish x64
run: dotnet publish -p:PublishSingleFile=true -r win-x64 -c Release --self-contained true -p:PublishTrimmed=true -p:UseAppHost=true
- name: Create Artifact x64
uses: actions/upload-artifact@v3
with:
name: playercountbot-${{ steps.branch-name.outputs.current_branch }}-${{steps.date.outputs.date}}
path: ./DiscordPlayerCountBot/bin/Release/net6.0/win-x64/publish
- name: Publish x86
run: dotnet publish -p:PublishSingleFile=true -r win-x86 -c Release --self-contained true -p:PublishTrimmed=true -p:UseAppHost=true
- name: Create Artifact x86
uses: actions/upload-artifact@v3
with:
name: playercountbot-${{ steps.branch-name.outputs.current_branch }}-${{steps.date.outputs.date}}-win-x86
path: ./DiscordPlayerCountBot/bin/Release/net6.0/win-x86/publish
- name: Publish Arm x86
run: dotnet publish -p:PublishSingleFile=true -r win-arm -c Release --self-contained true -p:PublishTrimmed=true -p:UseAppHost=true
- name: Create Artifact Arm x86
uses: actions/upload-artifact@v3
with:
name: playercountbot-${{ steps.branch-name.outputs.current_branch }}-${{steps.date.outputs.date}}-arm86
path: ./DiscordPlayerCountBot/bin/Release/net6.0/win-arm/publish
- name: Publish Arm x64
run: dotnet publish -p:PublishSingleFile=true -r win-arm64 -c Release --self-contained true -p:PublishTrimmed=true -p:UseAppHost=true
- name: Create Artifact Arm x64
uses: actions/upload-artifact@v3
with:
name: playercountbot-${{ steps.branch-name.outputs.current_branch }}-${{steps.date.outputs.date}}-arm64
path: ./DiscordPlayerCountBot/bin/Release/net6.0/win-arm64/publish
build-on-linux:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%Y-%m-%d')"
- name: Get branch name
id: branch-name
uses: tj-actions/[email protected]
- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: 6.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Test
run: dotnet test --no-build --verbosity normal
- name: Publish x64
run: dotnet publish -p:PublishSingleFile=true -r linux-x64 -c Release --self-contained true -p:PublishTrimmed=true -p:UseAppHost=true
- name: Create Artifact x64
uses: actions/upload-artifact@v3
with:
name: playercountbot-${{ steps.branch-name.outputs.current_branch }}-${{steps.date.outputs.date}}-linux64
path: ./DiscordPlayerCountBot/bin/Release/net6.0/linux-x64/publish
- name: Publish Arm x86
run: dotnet publish -p:PublishSingleFile=true -r linux-arm -c Release --self-contained true -p:PublishTrimmed=true -p:UseAppHost=true
- name: Create Artifact Arm x86
uses: actions/upload-artifact@v3
with:
name: playercountbot-${{ steps.branch-name.outputs.current_branch }}-${{steps.date.outputs.date}}-linux-arm86
path: ./DiscordPlayerCountBot/bin/Release/net6.0/linux-arm/publish
- name: Publish Arm x64
run: dotnet publish -p:PublishSingleFile=true -r linux-arm64 -c Release --self-contained true -p:PublishTrimmed=true -p:UseAppHost=true
- name: Create Artifact Arm x64
uses: actions/upload-artifact@v3
with:
name: playercountbot-${{ steps.branch-name.outputs.current_branch }}-${{steps.date.outputs.date}}-linux-arm64
path: ./DiscordPlayerCountBot/bin/Release/net6.0/linux-arm64/publish