File tree Expand file tree Collapse file tree 2 files changed +20
-20
lines changed Expand file tree Collapse file tree 2 files changed +20
-20
lines changed Original file line number Diff line number Diff line change 6
6
name : Create Release
7
7
8
8
jobs :
9
- build :
9
+
10
+ publish :
11
+ runs-on : windows-latest
12
+ needs : build
13
+ steps :
14
+ - uses : actions/checkout@v1
15
+ - name : Setup .NET Core
16
+ uses : actions/setup-dotnet@v1
17
+ with :
18
+ dotnet-version : 3.0.100
19
+ - name : Pack
20
+ run : dotnet pack -c Release
21
+ - name : Install NuGet
22
+ run : choco install nuget.commandline
23
+ - name : Add NuGet source
24
+ run : nuget sources Add -Name "GPR" -Source "https://nuget.pkg.github.com/mysql-net/index.json" -UserName bgrainger -Password ${{ secrets.GITHUB_TOKEN }}
25
+ - name : Publish to GPR
26
+ run : nuget push src\PlaygroundLibrary\bin\Release\PlaygroundLibrary.${{ github.ref }}.nupkg -Source GPR
27
+
28
+ release :
10
29
name : Create Release
11
30
runs-on : ubuntu-latest
12
31
steps :
13
32
- name : Checkout code
14
33
uses : actions/checkout@master
15
34
- name : Create Release
16
- id : create_release
17
35
uses : actions/create-release@master
18
36
env :
19
37
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 22
22
dotnet-version : 3.0.100
23
23
- name : Build with dotnet
24
24
run : dotnet build --configuration Release
25
-
26
- publish :
27
- runs-on : windows-latest
28
- needs : build
29
- steps :
30
- - uses : actions/checkout@v1
31
- - name : Setup .NET Core
32
- uses : actions/setup-dotnet@v1
33
- with :
34
- dotnet-version : 3.0.100
35
- - name : Pack
36
- run : dotnet pack -c Release --version-suffix preview-${{ github.sha }}
37
- - name : Install NuGet
38
- run : choco install nuget.commandline
39
- - name : Add NuGet source
40
- run : nuget sources Add -Name "GPR" -Source "https://nuget.pkg.github.com/mysql-net/index.json" -UserName bgrainger -Password ${{ secrets.GITHUB_TOKEN }}
41
- - name : Publish to GPR
42
- run : nuget push src\PlaygroundLibrary\bin\Release\PlaygroundLibrary.0.1.0-preview-${{ github.sha }}.nupkg -Source GPR
You can’t perform that action at this time.
0 commit comments