From f04d304a7b7403e8afee6d3e214a510e06f6a3f6 Mon Sep 17 00:00:00 2001 From: Alan Brault Date: Tue, 21 May 2024 08:31:52 -0400 Subject: [PATCH] chore(file-update): release.yaml Signed-off-by: Alan Brault --- .github/workflows/release.yaml | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index d6956da..53b0da6 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -37,17 +37,24 @@ jobs: run: dotnet restore --verbosity Quiet - name: Build run: | - dotnet build -c release --no-restore \ - -p:Version=${{ steps.gitversion.outputs.assemblySemVer }} \ - -p:FileVersion=${{ steps.gitversion.outputs.assemblySemFileVer }} \ + dotnet build -c release --no-restore ` + -p:Version=${{ steps.gitversion.outputs.assemblySemVer }} ` + -p:FileVersion=${{ steps.gitversion.outputs.assemblySemFileVer }} ` -p:InformationalVersion=${{ steps.gitversion.outputs.informationalVersion }} - name: Test run: dotnet test -c release --no-restore --no-build - name: Pack run: | - dotnet pack -c release --no-restore --no-build \ - -p:PackageVersion=${{ steps.gitversion.outputs.fullSemVer }} \ + dotnet pack -c release --no-restore --no-build ` + -p:PackageVersion=${{ steps.gitversion.outputs.fullSemVer }} ` -p:PackageOutputPath=${{ runner.temp }}/packages - - name: Push - run: dotnet nuget push *.nupkg -k ${{ secrets.NUGET_TOKEN }} -s https://api.nuget.org/v3/index.json --skip-duplicate - working-directory: ${{ runner.temp }}/packages \ No newline at end of file + - name: Create Release + uses: actions/create-release@v1 + with: + tag_name: ${{ github.ref }} + release_name: ${{ steps.gitversion.outputs.assemblySemVer }} + draft: true + prerelease: true +# - name: Push +# run: dotnet nuget push *.nupkg -k ${{ secrets.NUGET_TOKEN }} -s https://api.nuget.org/v3/index.json --skip-duplicate +# working-directory: ${{ runner.temp }}/packages \ No newline at end of file