Added result extensions #17
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, Pack and Publish | |
on: | |
push: | |
branches: [ "main" ] | |
paths: | |
- 'src/**' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup .NET Core | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: 8.0.x | |
- name: Install dependencies | |
run: dotnet restore | |
working-directory: src | |
- name: Build | |
run: dotnet build --configuration Release --no-restore | |
working-directory: src | |
- name: Pack ResultifyCore | |
run: dotnet pack Resultify/ResultifyCore.csproj --configuration Release --no-build --output nupkgs | |
working-directory: src | |
- name: Publish | |
run: dotnet nuget push nupkgs/*.nupkg --api-key ${{ secrets.NUGET_APIKEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate | |
working-directory: src |