forked from sunnamed434/BitMono
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (42 loc) · 1.29 KB
/
bitmono-cli-net6.0.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
name: Artifacts for the BitMono CLI .NET (Core) 6.0
on:
create:
tags:
- "*"
jobs:
Build:
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.x'
- name: Build
run: dotnet build ./src/BitMono.CLI/BitMono.CLI.csproj /p:TargetFramework=net6.0 /p:BitMonoVersion=${{ github.ref_name }} /p:CreateBitMonoArtifacts=true --configuration Release
- name: Upload build
uses: actions/upload-artifact@v2
with:
name: build
path: "./src/BitMono.CLI/BitMono-v${{ github.ref_name }}-CLI-net6.0.zip"
Release:
needs: [Build]
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Download build
uses: actions/download-artifact@v2
with:
name: build
path: ./build/
- name: Create Release & Upload Assets
uses: ncipollo/release-action@v1
with:
name: v${{ github.ref_name }}
tag: v${{ github.ref_name }}
artifacts: "./build/BitMono-v${{ github.ref_name }}-CLI-net6.0.zip"
token: ${{secrets.PAT}}
prerelease: true
allowUpdates: true