From 8582fe73d8dfdaa69953b6522c6a5e650413de03 Mon Sep 17 00:00:00 2001 From: Alan Rynne Date: Tue, 23 Jun 2020 22:35:16 +0200 Subject: [PATCH 1/3] Trying deployment again --- .github/workflows/deploy.yaml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 1b8dd31..d55c028 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -12,16 +12,22 @@ jobs: steps: - name: ๐Ÿ›Ž Checkout repo uses: actions/checkout@v2 + - name: ๐Ÿšง Setup .NET Core uses: actions/setup-dotnet@v1 with: dotnet-version: 3.1.101 + source-url: https://nuget.pkg.github.com/paramdigma/index.json + - name: โš™๏ธ Install dependencies run: dotnet restore + - name: ๐Ÿ— Build run: dotnet build --configuration Release --no-restore + - name: ๐Ÿงช Test run: dotnet test --no-restore --verbosity normal + - name: ๐Ÿ—œ Compress build files # This would actually build your project, using zip for an example artifact run: zip --junk-paths ./Paramdigma.Core.zip ./src/bin/Release/netstandard2.0/* @@ -45,11 +51,11 @@ jobs: asset_path: ./Paramdigma.Core.zip asset_name: Paramdigma.Core.zip asset_content_type: application/zip + - name: ๐Ÿ“ฆ Create the package run: dotnet pack --configuration Release src/Paramdigma.Core.csproj - - run: dotnet nuget add source https://nuget.pkg.github.com/Paramdigma/index.json --name github --username AlanRynne --password ${{secrets.GITHUB_TOKEN}} - name: ๐Ÿš€ Publish the package to GPR - run: dotnet nuget push ./src/bin/Release/*.nupkg --source github + run: dotnet nuget push src/bin/Release/*.nupkg deploy_docs: runs-on: ubuntu-latest From ee91a80e644c64151be3107f01d1dfca7410b258 Mon Sep 17 00:00:00 2001 From: Alan Rynne Date: Tue, 23 Jun 2020 22:40:49 +0200 Subject: [PATCH 2/3] Bump version --- src/Paramdigma.Core.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Paramdigma.Core.csproj b/src/Paramdigma.Core.csproj index d807196..534717c 100644 --- a/src/Paramdigma.Core.csproj +++ b/src/Paramdigma.Core.csproj @@ -13,7 +13,7 @@ Paramdigma.Core - 0.0.8 + 0.0.9 Alan Rynne Paramdigma Computational Geometry library for .Net From 70833e8fa4b3a3e91a8906f57b8773d5b530a812 Mon Sep 17 00:00:00 2001 From: Alan Rynne Date: Tue, 23 Jun 2020 22:47:52 +0200 Subject: [PATCH 3/3] Added nuget token --- .github/workflows/deploy.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index d55c028..a2f5975 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -18,7 +18,9 @@ jobs: with: dotnet-version: 3.1.101 source-url: https://nuget.pkg.github.com/paramdigma/index.json - + env: + NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} + - name: โš™๏ธ Install dependencies run: dotnet restore