From 1632b27404570a39109fa8e7eb668659deea7352 Mon Sep 17 00:00:00 2001 From: Calvin Che Date: Wed, 18 Mar 2020 02:08:51 +0800 Subject: [PATCH] Update dependencies --- .github/workflows/release-dotnet-nuget.yml | 33 ++++++++++++++----- .../PrismaDB.QueryAST.csproj | 4 +-- 2 files changed, 26 insertions(+), 11 deletions(-) diff --git a/.github/workflows/release-dotnet-nuget.yml b/.github/workflows/release-dotnet-nuget.yml index 0b828a3..b724b17 100644 --- a/.github/workflows/release-dotnet-nuget.yml +++ b/.github/workflows/release-dotnet-nuget.yml @@ -32,12 +32,6 @@ jobs: steps: - name: Checkout uses: actions/checkout@v2 - - name: Get version - id: get_version - run: | - tag_name=${{ github.event.release.tag_name }} - echo ::set-output name=VERSION::${tag_name:1} - shell: bash - name: Setup nuget uses: nuget/setup-nuget@v1 - name: Update nuget source @@ -50,8 +44,29 @@ jobs: - name: Restore packages run: nuget restore - name: Build with dotnet - run: dotnet build --configuration Release --no-restore -p:Version=${{ steps.get_version.outputs.VERSION }} + run: dotnet build --configuration Release --no-restore -p:Version=${{ github.event.release.tag_name }} - name: Pack nuget packages - run: dotnet pack --configuration Release --no-build -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg -p:PackageVersion=${{ steps.get_version.outputs.VERSION }} + run: dotnet pack --configuration Release --no-build --output nupkgs -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg -p:PackageVersion=${{ github.event.release.tag_name }} - name: Publish nuget packages - run: dotnet nuget push **/*.nupkg --source "github" \ No newline at end of file + run: dotnet nuget push **/*.nupkg --source "github" + - name: Upload artifacts + uses: actions/upload-artifact@v1 + with: + name: nupkgs + path: nupkgs + + release: + needs: publish + runs-on: ubuntu-latest + steps: + - name: Download artifacts + uses: actions/download-artifact@v1 + with: + name: nupkgs + path: nupkgs + - name: Release artifacts + uses: skx/github-action-publish-binaries@master + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + args: 'nupkgs/*' \ No newline at end of file diff --git a/src/PrismaDB.QueryAST/PrismaDB.QueryAST.csproj b/src/PrismaDB.QueryAST/PrismaDB.QueryAST.csproj index 9401583..8643083 100644 --- a/src/PrismaDB.QueryAST/PrismaDB.QueryAST.csproj +++ b/src/PrismaDB.QueryAST/PrismaDB.QueryAST.csproj @@ -9,7 +9,7 @@ runtime; build; native; contentfiles; analyzers; buildtransitive - - + +