diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 1b8dd31..a2f5975 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -12,16 +12,24 @@ 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 + env: + NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} + - 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 +53,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 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