build: push nuget package to github registry #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: CI | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [windows-latest] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup .NET 6.0 | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: '6.0.x' | |
- name: Build | |
run: pwsh make.ps1 | |
- name: Package | |
run: pwsh make.ps1 package | |
- name: Test (net48) | |
run: ./make.ps1 -frameworks net48 test-all | |
shell: pwsh | |
- name: Test (net6.0) | |
run: ./make.ps1 -frameworks net6.0 test-all | |
shell: pwsh | |
- name: Push | |
run: dotnet nuget push Package\Release\Packages\*.nupkg --source https://nuget.pkg.github.com/pyrevitlabs/index.json --api-key ${{ secrets.GITHUB_TOKEN }} |