-
Notifications
You must be signed in to change notification settings - Fork 13
50 lines (42 loc) · 1.5 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: release
on:
push:
branches: [ main ]
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- name: Get source
uses: actions/checkout@v4
with:
submodules: 'true'
- name: Setup .NET Core 6.
uses: actions/setup-dotnet@v4
with:
dotnet-version: 6.0.x
- name: Restore packages.
run: dotnet restore
- name: Build all projects.
run: dotnet build --configuration Release --no-restore
- name: Unittests.
run: dotnet test
working-directory: ./test/NetTopologySuite.IO.VectorTiles.Tests/
- name: Functional tests.
run: dotnet run -c release
working-directory: ./test/NetTopologySuite.IO.VectorTiles.Tests.Functional/
- name: Nuget Pack
run: dotnet pack -c release
working-directory: ./src/NetTopologySuite.IO.VectorTiles/
- name: Nuget Pack
run: dotnet pack -c release
working-directory: ./src/NetTopologySuite.IO.VectorTiles.Mapbox/
- name: Nuget Pack
run: dotnet pack -c release
working-directory: ./src/NetTopologySuite.IO.VectorTiles.GeoJson/
- name: Nuget push Github
run: dotnet nuget push **/*.nupkg --skip-duplicate -k ${{ secrets.GITHUB_TOKEN }} -s https://nuget.pkg.github.com/NetTopologySuite/index.json
working-directory: ./src/
- name: Nuget push Nuget
run: dotnet nuget push **/*.nupkg --skip-duplicate -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json
shell: bash
working-directory: ./src/