Merge pull request #53 from SimplifyNet/dependabot/nuget/develop/Http… #56
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: Build Package | |
on: push | |
defaults: | |
run: | |
working-directory: src | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, windows-latest] | |
steps: | |
- name: Code Checkout | |
uses: actions/checkout@v2 | |
- name: Install DotNet | |
uses: actions/setup-dotnet@v1 | |
- name: Restore Dependencies | |
run: dotnet restore | |
- name: Build Package | |
run: dotnet build --no-restore -c Release | |
- name: Perform Unit Testing | |
run: dotnet test --no-build -c Release --verbosity normal | |
- name: Create Package | |
run: dotnet pack --no-build -c Release -o ./publish | |
- name: Create packages artifact | |
uses: actions/upload-artifact@v2 | |
with: | |
name: Packages | |
path: ./src/publish/ |