Update dotnetcore.yml #163
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: .NET Core | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Setup .NET Core | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: 8.0.0 | |
source-url: https://nuget.pkg.github.com/directsql/index.json | |
env: | |
NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
- name: Build with dotnet | |
run: dotnet build --configuration Release | |
- name: Test with dotnet | |
run: dotnet test --configuration Release | |
- name: Push to GitHub Package | |
if: github.ref == 'refs/heads/main' | |
run: dotnet nuget push "DirectSQL/bin/Release/DirectSQL.*.nupkg" --skip-duplicate |