From f821de267d48b23c48808678c9706df077066d8f Mon Sep 17 00:00:00 2001 From: Erik Hennerfors Date: Tue, 11 Jul 2023 14:58:38 +0200 Subject: [PATCH] Updated publish.yml --- .github/workflows/publish.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 983a516..be88b09 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -21,6 +21,7 @@ jobs: publish: runs-on: ubuntu-latest + needs: tests steps: - uses: actions/checkout@v3 @@ -29,5 +30,5 @@ jobs: dotnet-version: 6.0.x - run: dotnet restore - run: dotnet build --configuration Release Intercom/Intercom.csproj - - run: dotnet pack --configuration Release Intercom/Intercom.csproj --no-build -p:Version=0.1.${{github.run_number}}-alpha -p:PackageVersion=0.1.${{github.run_number}}-alpha -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg -p:NuspecFile=Intercom.nuspec - - run: dotnet nuget push Intercom/bin/Release/Intercom-NET.0.1.${{github.run_number}}-alpha.nupkg --api-key ${{secrets.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json --skip-duplicate \ No newline at end of file + - run: dotnet pack --configuration Release Intercom/Intercom.csproj --no-build -p:Version=${{vars.VERSION}}.${{github.run_number}}-alpha -p:PackageVersion=${{vars.VERSION}}.${{github.run_number}}-alpha -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg -p:NuspecFile=Intercom.nuspec + - run: dotnet nuget push Intercom/bin/Release/Intercom-NET.${{vars.VERSION}}.${{github.run_number}}-alpha.nupkg --api-key ${{secrets.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json --skip-duplicate \ No newline at end of file