Skip to content

Commit

Permalink
Updated publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
gonace committed Jul 11, 2023
1 parent 9091e53 commit 7ca60bc
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,15 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
- uses: actions/setup-dotnet@v3
with:
dotnet-version: |
7.0.x
6.0.x
3.1.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore --configuration Release
- name: Test
run: dotnet test --no-build --configuration Release --verbosity normal
- run: dotnet restore
- run: dotnet build --no-restore --configuration Release
- run: dotnet test --no-build --configuration Release --verbosity normal

publish:
runs-on: ubuntu-latest
Expand All @@ -34,4 +30,4 @@ jobs:
dotnet-version: 6.0.x
- run: dotnet build --configuration Release Intercom/Intercom.csproj
- run: dotnet pack --configuration Release Intercom/Intercom.csproj -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.0.1.${{github.run_number}}-alpha.nupkg --api-key ${{secrets.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json --skip-duplicate
- run: dotnet nuget push Intercom/bin/Release/Intercom.0.1.${{github.run_number}}-alpha.nupkg --api-key ${{secrets.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json --skip-duplicate

0 comments on commit 7ca60bc

Please sign in to comment.