From 2516020c1ae824b0774245be5a1e70100245232c Mon Sep 17 00:00:00 2001 From: Matthew Fisher Date: Fri, 29 Apr 2022 10:11:40 -0700 Subject: [PATCH 1/2] do not publish on push to main There's no need to publish a development version. Users can compile from source. Signed-off-by: Matthew Fisher --- .github/workflows/publish.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index c0b9738..b344b39 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -5,7 +5,6 @@ on: tags: - '[0-9]+.[0-9]+.[0-9]+' - '[0-9]+.[0-9]+.[0-9]+-preview' - branches: [ main ] jobs: publish: @@ -30,7 +29,6 @@ jobs: dotnet nuget push $nupkg --api-key ${{ secrets.GHPACKAGES_PAT }} --source https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json --skip-duplicate done - name: Publish Nuget Packages - if: startsWith(github.ref, 'refs/tags/') run: | for nupkg in $(find . -name *.nupkg) do From 68bd3c5fd84e71ad785b9653454f1f39f6e8e741 Mon Sep 17 00:00:00 2001 From: Matthew Fisher Date: Fri, 29 Apr 2022 10:12:13 -0700 Subject: [PATCH 2/2] remove MINVERBUILDMETADATA on build/test Signed-off-by: Matthew Fisher --- .github/workflows/build-and-test.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 6e85424..50fba13 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -53,8 +53,6 @@ jobs: dotnet-version: 6.0.x - name: Restore dependencies run: dotnet restore - - name: Set MINVERBUILDMETADATA - run: echo MINVERBUILDMETADATA=$(git rev-parse --short ${GITHUB_SHA}) >> $GITHUB_ENV - name: Build run: dotnet build -c ${{ matrix.config }} --no-restore - name: Test