From 3cd35a0b41037633e42eea2b1998d838e6dbed52 Mon Sep 17 00:00:00 2001 From: "Frank R. Haugen" Date: Tue, 8 Aug 2023 21:57:13 +0200 Subject: [PATCH] Update merge.yml --- .github/workflows/merge.yml | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/.github/workflows/merge.yml b/.github/workflows/merge.yml index bb63876d..dfcac28e 100644 --- a/.github/workflows/merge.yml +++ b/.github/workflows/merge.yml @@ -16,8 +16,14 @@ jobs: - name: Set execution permissions for build.ps1 run: chmod +x build.ps1 working-directory: src + - name: Find Latest Tag + id: find + uses: oprypin/find-latest-tag@v1.0.4 + with: + repository: ${{ github.repository }} + releases-only: true - name: Build - run: pwsh build.ps1 -configuration Release + run: pwsh build.ps1 -configuration Release -version ${{ steps.find.outputs.tag }} -versionSuffix "-build$GITHUB_RUN_NUMBER" working-directory: src - name: Push NuGets run: dotnet nuget push ".artifacts/packages/*.nupkg" -k ${{ secrets.NugetKey }} -s https://api.nuget.org/v3/index.json --skip-duplicate @@ -40,13 +46,3 @@ jobs: # env: # SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - #- name: Find Latest Tag - # id: find - # uses: oprypin/find-latest-tag@v1.0.4 - # with: - # repository: ${{ github.repository }} - # releases-only: true - #- name: Pack NuGet - # run: dotnet pack --configuration Release -v m --output nupkgs -p:PackageVersion=${{ steps.find.outputs.tag }}-build$GITHUB_RUN_NUMBER - - #run: dotnet nuget push "**/Frank.Libraries.*.${{ steps.find.outputs.tag }}-build$GITHUB_RUN_NUMBER.nupkg" -k ${{ secrets.NugetKey }} -s https://api.nuget.org/v3/index.json --skip-duplicate