Update README.md #66
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: Fynance | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
DOTNET_VERSION: 3.1.101 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Setup .NET SDK | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: ${{ env.DOTNET_VERSION }} | |
- name: Install dependencies | |
run: dotnet restore | |
working-directory: ./src | |
- name: Build | |
run: dotnet build --configuration Release --no-restore | |
working-directory: ./src | |
- name: Test | |
run: dotnet test --no-restore --verbosity normal --configuration Release | |
working-directory: ./src | |
- name: Create NuGet package | |
run: dotnet pack --configuration Release --no-build --output ./nupkg | |
working-directory: ./src | |
# - name: Publish Nuget | |
# run: dotnet nuget push ./Fynance/bin/Release/*.nupkg --api-key ${{ secrets.NUGET_TOKEN }} --skip-duplicate --source "https://api.nuget.org/v3/index.json" |