-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change CI from Travis to GitHub Actions (#16)
* Create dotnet.yml * Remove usage of PackageIconUrl * Update test project to netCoreApp3.1 * Remove travis.yml * Update package version * Update badge
- Loading branch information
1 parent
d859a1c
commit 5f51421
Showing
8 changed files
with
104 additions
and
42 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
name: .NET | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
pack: | ||
name: Build (${{ matrix.os }}) | ||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
matrix: | ||
os: [ ubuntu-latest, windows-latest, macOS-latest ] | ||
|
||
steps: | ||
- name: Get source | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup .NET Core 3.1 | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: 3.1.406 | ||
|
||
- name: Build | ||
run: dotnet build -c Release -v minimal -p:WarningLevel=3 | ||
|
||
- name: Test | ||
run: dotnet test -c Release --no-build -v normal | ||
|
||
- name: Pack | ||
run: dotnet pack -c Release --no-build -o artifacts -p:NoWarn=NU5105 | ||
|
||
- name: Upload | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: NuGet Package Files (${{ matrix.os }}) | ||
path: artifacts | ||
|
||
deployToMyGet: | ||
name: Deploy to MyGet | ||
runs-on: ubuntu-latest | ||
|
||
needs: pack | ||
if: github.event_name == 'push' && (github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/master') | ||
|
||
steps: | ||
- name: Setup .NET Core 3.1 | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: 3.1.406 | ||
|
||
- name: Download Package Files | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: NuGet Package Files (ubuntu-latest) | ||
path: artifacts | ||
|
||
- name: Publish Package Files to MyGet | ||
run: dotnet nuget push artifacts/*.nupkg -s https://www.myget.org/F/nettopologysuite/api/v3/index.json -k $MYGET_API_KEY | ||
shell: bash | ||
env: | ||
MYGET_API_KEY: ${{ secrets.MYGET_API_KEY }} | ||
|
||
deployToNuGet: | ||
name: Deploy to NuGet | ||
runs-on: ubuntu-latest | ||
|
||
needs: pack | ||
if: github.event_name == 'push' && github.ref == 'refs/heads/master' | ||
|
||
steps: | ||
- name: Setup .NET Core 3.1 | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: 3.1.406 | ||
|
||
- name: Download Package Files | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: NuGet Package Files (ubuntu-latest) | ||
path: artifacts | ||
|
||
- name: Publish Package Files to NuGet | ||
run: dotnet nuget push artifacts/*.nupkg -s https://api.nuget.org/v3/index.json -k $NUGET_API_KEY | ||
shell: bash | ||
env: | ||
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }} |
This file was deleted.
Oops, something went wrong.
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
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
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
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
2 changes: 1 addition & 1 deletion
2
test/NetTopologySuite.IO.SqlServerBytes.Test/NetTopologySuite.IO.SqlServerBytes.Test.csproj
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