diff --git a/.github/workflows/test-and-deploy.yml b/.github/workflows/test-and-deploy.yml index 937d36d92..882972844 100644 --- a/.github/workflows/test-and-deploy.yml +++ b/.github/workflows/test-and-deploy.yml @@ -25,13 +25,13 @@ jobs: uses: actions/setup-dotnet@v3 with: global-json-file: global.json - + # - name: Remove dotnet 7 and 8 # run: sudo rm -rf /usr/share/dotnet/sdk/{7*,8*} - + - name: Get installed dotnet version run: dotnet --version - + - uses: actions/setup-java@v4 with: distribution: 'zulu' @@ -105,7 +105,7 @@ jobs: uses: sendgrid/dx-automator/actions/datadog-release-metric@main env: DD_API_KEY: ${{ secrets.DATADOG_API_KEY }} - + code-signing: runs-on: windows-latest needs: [ deploy ] @@ -174,8 +174,9 @@ jobs: run: | dotnet build -c Release dotnet pack -c Release - nuget sign **/*.nupkg -Timestamper http://timestamp.digicert.com -outputdirectory .\NugetSigned -CertificateFingerprint ${{ secrets.SM_CODE_SIGNING_CERT_SHA1_HASH }} -HashAlgorithm SHA256 -Verbosity detailed -Overwrite - nuget push **/*.nupkg -ApiKey ${{ secrets.NUGET_API_KEY }} -Source https://api.nuget.org/v3/index.json -SkipDuplicate + echo "Twilio.${{ steps.variables.outputs.version }}.nupkg" + nuget sign Twilio.${{ steps.variables.outputs.version }}.nupkg -Timestamper http://timestamp.digicert.com -outputdirectory .\NugetSigned -CertificateFingerprint ${{ secrets.SM_CODE_SIGNING_CERT_SHA1_HASH }} -HashAlgorithm SHA256 -Verbosity detailed -Overwrite + nuget push Twilio.${{ steps.variables.outputs.version }}.nupkg -ApiKey ${{ secrets.NUGET_API_KEY }} -Source https://api.nuget.org/v3/index.json -SkipDuplicate notify-on-failure: name: Slack notify on failure