-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (60 loc) · 2.73 KB
/
release.yaml
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
name: Release-CI
on:
push:
tags:
- '**'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore src/Peppermint.ReverseProxy/Peppermint.ReverseProxy.csproj
- name: Build Portable
run: dotnet build src/Peppermint.ReverseProxy/Peppermint.ReverseProxy.csproj --no-restore --configuration Release
- name: Publish Portable
run: dotnet publish src/Peppermint.ReverseProxy/Peppermint.ReverseProxy.csproj -o app/Portable
- name: Publish Win x86
run: dotnet publish src/Peppermint.ReverseProxy/Peppermint.ReverseProxy.csproj --runtime win-x86 --self-contained true -p:PublishReadyToRun=true -o app/Win-x86
- name: Publish Win x64
run: dotnet publish src/Peppermint.ReverseProxy/Peppermint.ReverseProxy.csproj --runtime win-x64 --self-contained true -p:PublishReadyToRun=true -o app/Win-x64
- name: Publish Linux
run: dotnet publish src/Peppermint.ReverseProxy/Peppermint.ReverseProxy.csproj --runtime linux-arm64 --self-contained true -p:PublishReadyToRun=true -o app/Linux-arm64
- name: Publish Linux
run: dotnet publish src/Peppermint.ReverseProxy/Peppermint.ReverseProxy.csproj --runtime linux-x64 --self-contained true -p:PublishReadyToRun=true -o app/Linux-x64
- name: Publish MacOS
run: dotnet publish src/Peppermint.ReverseProxy/Peppermint.ReverseProxy.csproj --runtime osx-x64 --self-contained true -p:PublishReadyToRun=true -o app/MacOS
- name: Upload a Build Artifact Portable
uses: actions/[email protected]
with:
name: Peppermint.ReverseProxy-${{ github.ref_name }}-portable
path: app/Portable
- name: Upload a Build Artifact Win-x86
uses: actions/[email protected]
with:
name: Peppermint.ReverseProxy-${{ github.ref_name }}-win-x86
path: app/Win-x86
- name: Upload a Build Artifact Win-x64
uses: actions/[email protected]
with:
name: Peppermint.ReverseProxy-${{ github.ref_name }}-win-x64
path: app/Win-x64
- name: Upload a Build Artifact Linux-arm64
uses: actions/[email protected]
with:
name: Peppermint.ReverseProxy-${{ github.ref_name }}-linux-arm64
path: app/Linux-arm64
- name: Upload a Build Artifact Linux-x64
uses: actions/[email protected]
with:
name: Peppermint.ReverseProxy-${{ github.ref_name }}-linux-x64
path: app/Linux-x64
- name: Upload a Build Artifact MacOS
uses: actions/[email protected]
with:
name: Peppermint.ReverseProxy-${{ github.ref_name }}-darwin-x64
path: app/MacOS