Skip to content

Commit

Permalink
Update .NET, don't build when testing and fix nuget pushing.
Browse files Browse the repository at this point in the history
  • Loading branch information
GGG-KILLER authored Oct 29, 2020
1 parent a61932e commit 4c90ebc
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,21 @@ jobs:
- name: Setup .NET 5
uses: actions/setup-dotnet@v1
with:
dotnet-version: '5.0.100-rc.1.20452.10'
dotnet-version: 5.0.100-rc.2.20479.15
- name: Install dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Test
run: dotnet test --configuration Release --no-restore
run: dotnet test --configuration Release --no-build
- name: Generate NuGet packages
run: dotnet pack --configuration Release --output ./packages --no-restore --include-symbols -p:SymbolPackageFormat=snupkg
- name: Publish packages
run: dotnet nuget push ./packages/ --source https://www.myget.org/F/ggg-killer/api/v3/index.json --api-key ${{ secrets.MYGET_API_KEY }} --skip-duplicate
run: |
Get-ChildItem -Path ./packages/ -Filter *.nupkg -File -Name | ForEach-Object {
dotnet nuget push ./packages/$_ --source https://www.myget.org/F/ggg-killer/api/v3/index.json --api-key ${{ secrets.MYGET_API_KEY }} --skip-duplicate
}
shell: pwsh
- name: Create Release
uses: actions/create-release@v1
env:
Expand All @@ -53,7 +57,7 @@ jobs:
- name: Setup .NET 5
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.100-rc.1.20452.10
dotnet-version: 5.0.100-rc.2.20479.15
- name: Install dependencies
run: dotnet restore
- name: Build
Expand Down

0 comments on commit 4c90ebc

Please sign in to comment.