Skip to content

fix ci

fix ci #157

Workflow file for this run

name: .NET
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
global-json-file: global.json
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build -c Release --no-restore
- name: Test
run: dotnet test --verbosity normal
- name: Pack NuGet
run: dotnet pack -c Release --version-suffix preview.1.`date +%y%m%d%H%M` -o ./ -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg
- name: Push NuGet
run: dotnet nuget push '*.nupkg' -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGET_API_KEY }} --skip-duplicate
# - name: Push GitHub Packages
# run: dotnet nuget push '*.nupkg' -s https://nuget.pkg.github.com/netcorepal/index.json -k ${{ secrets.GITHUB_TOKEN }} --skip-duplicate