Merged repositories #1
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: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup .NET Core | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 7.0.306 | |
# Authenticates packages to push to GPR | |
source-url: https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json | |
- name: Install dependencies | |
run: dotnet restore | |
env: | |
NUGET_AUTH_TOKEN: ${{ github.token }} | |
- name: Build | |
run: dotnet build --configuration Release --no-restore | |
- name: Test | |
run: dotnet test --no-restore --verbosity normal | |
- name: PushNuget | |
run: dotnet nuget push **/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.PUBLISH_TO_NUGET_ORG }} --skip-duplicate | |
- name: PushGithub | |
run: dotnet nuget push **/*.nupkg --no-symbols --skip-duplicate | |
env: | |
NUGET_AUTH_TOKEN: ${{ github.token }} |