-
-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (44 loc) · 1.19 KB
/
workflow-release.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
name: .NET Core
on:
push:
tags:
- 'v*'
- '!v*-alpha*'
- '!v*-beta*'
- '!v*-rc*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 7.0.100
- name: Install dependencies
run: dotnet restore
- name: Build
run: dotnet build -r linux-x64 --configuration Release --no-restore --self-contained false /p:PublishSingleFile=true /p:PublishTrimmed=true
- name: Zip the Build
run: cd ./bin/Release/net7.0/linux-x64/ && zip -r ../../../../gitpod-tool.zip ./* && cd -
- uses: actions/upload-artifact@v3
with:
name: zipped-tool
path: gitpod-tool.zip
publish:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
with:
name: zipped-tool
- uses: ncipollo/release-action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
skipIfReleaseExists: true
generateReleaseNotes: true
makeLatest: true
artifacts: gitpod-tool.zip
artifactContentType: application/zip