Skip to content

Commit

Permalink
Merge pull request #175 from janusw/gha_pkg
Browse files Browse the repository at this point in the history
GitHub Actions: upload nupkg as artifact
  • Loading branch information
xfischer authored Feb 28, 2024
2 parents 7cc00fb + 4405777 commit 16cb756
Showing 1 changed file with 27 additions and 2 deletions.
29 changes: 27 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,32 @@ on:
workflow_dispatch:

jobs:
build:

linuxBuild:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
3.1.x
5.0.x
- name: Install dependencies
run: dotnet restore src/GeoJSON.Net.sln
- name: Build
run: dotnet build src/GeoJSON.Net.sln -c Release --no-restore -p:Version=$(git describe --tags)
- name: Test
run: dotnet test src/GeoJSON.Net.sln --no-restore --verbosity normal

winBuild:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup .NET Core
uses: actions/setup-dotnet@v4
with:
Expand All @@ -24,6 +44,11 @@ jobs:
- name: Install dependencies
run: dotnet restore src/GeoJSON.Net.sln
- name: Build
run: dotnet build src/GeoJSON.Net.sln --configuration Release --no-restore
run: dotnet build src/GeoJSON.Net.sln -c Release --no-restore -p:Version=$(git describe --tags)
- name: Upload package
uses: actions/upload-artifact@v4
with:
name: nupkg
path: ./src/GeoJSON.Net/bin/Release/*.nupkg
- name: Test
run: dotnet test src/GeoJSON.Net.sln --no-restore --verbosity normal

0 comments on commit 16cb756

Please sign in to comment.