From 5e983a25340a8000b48f33abf6430ecfb6b62b02 Mon Sep 17 00:00:00 2001
From: Ivan Josipovic <9521987+IvanJosipovic@users.noreply.github.com>
Date: Sat, 2 Nov 2019 12:08:43 -0700
Subject: [PATCH 1/2] removed version
---
src/BlazorTable/BlazorTable.csproj | 1 -
1 file changed, 1 deletion(-)
diff --git a/src/BlazorTable/BlazorTable.csproj b/src/BlazorTable/BlazorTable.csproj
index 1b47695e..dc535b0e 100644
--- a/src/BlazorTable/BlazorTable.csproj
+++ b/src/BlazorTable/BlazorTable.csproj
@@ -9,7 +9,6 @@
Ivan Josipovic
https://BlazorTable.netlify.com
Blazor;Table;Grid;DataTable;Data;Sort;Filter;AspNetCore;AspNet
- 0.0.8-preview1
icon.png
https://github.com/IvanJosipovic/BlazorTable
git
From 35133dafbb532c65a7b643eefaeafd075ee529f1 Mon Sep 17 00:00:00 2001
From: Ivan Josipovic <9521987+IvanJosipovic@users.noreply.github.com>
Date: Sat, 2 Nov 2019 12:17:56 -0700
Subject: [PATCH 2/2] Set version from Tag Name
---
.github/workflows/release.yml | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 5f4630ad..212e2e05 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -17,13 +17,11 @@ jobs:
dotnet-version: 3.1.100-preview1-014459
- name: Dotnet Pack
working-directory: src/BlazorTable
- run: dotnet pack --configuration Release
+ run: dotnet pack -c Release -p:Version=${GITHUB_REF##*/v}
- name: Dotnet Nuget Push
working-directory: src/BlazorTable/bin/Release
- run: dotnet nuget push BlazorTable.*.nupkg -s https://api.nuget.org/v3/index.json -k $NUGET_API_KEY
+ run: dotnet nuget push BlazorTable.*.nupkg -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGET_API_KEY }}
continue-on-error: true
- env:
- NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
- name: Create Release
uses: actions/create-release@v1
env: