Bump xunit from 2.4.1 to 2.5.1 #128
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: DigitalOcean.API CI | |
on: | |
push: | |
branches: | |
- "*" | |
pull_request: | |
branches: | |
- "*" | |
release: | |
types: | |
- created | |
jobs: | |
build: | |
strategy: | |
matrix: | |
configuration: [Debug, Release] | |
os: [windows-latest, ubuntu-latest, macOS-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: actions/setup-dotnet@v1 | |
- run: dotnet build --configuration ${{ matrix.configuration }} | |
- run: dotnet test --no-build --configuration ${{ matrix.configuration }} | |
- uses: actions/upload-artifact@v1 | |
if: matrix.configuration == 'Release' && matrix.os == 'windows-latest' | |
with: | |
name: release-files | |
path: DigitalOcean.API/bin/Release | |
publish: | |
needs: build | |
if: github.event_name == 'release' | |
runs-on: windows-latest | |
steps: | |
- uses: actions/download-artifact@v1 | |
with: | |
name: release-files | |
- run: choco install nuget.commandline | |
- run: nuget sources add -Name gpr -Source https://nuget.pkg.github.com/trmcnvn/index.json -UserName trmcnvn -Password ${{ secrets.GITHUB_API_KEY }} | |
- run: nuget push **/*.nupkg -Source nuget.org -ApiKey ${{ secrets.NUGET_API_KEY }} -NonInteractive -SkipDuplicate -NoSymbols | |
- run: nuget push **/*.nupkg -Source gpr -NonInteractive -SkipDuplicate -NoSymbols |