Bump System.IdentityModel.Tokens.Jwt from 8.2.0 to 8.2.1 in /src/LtiAdvantage.AspNetCore #280
Workflow file for this run
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: | |
branches: | |
- master | |
tags: | |
- 'v*' | |
pull_request: | |
branches: | |
- master | |
jobs: | |
ci: | |
runs-on: windows-latest | |
env: | |
GITHUB_NUGET_SOURCE_URL: https://nuget.pkg.github.com/LtiLibrary/index.json | |
NUGET_SOURCE_URL: https://api.nuget.org/v3/index.json | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Fetch tags | |
run: | | |
git fetch origin +refs/tags/*:refs/tags/* | |
git fetch --prune --unshallow | |
- name: Build Reason | |
run: "echo ref: ${{github.ref}} event: ${{github.event_name}}" | |
- name: Setup .NET 6.0 | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: '6.0' | |
- name: Setup .NET 7.0 | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: '7.0' | |
- name: Build | |
run: dotnet build --configuration Release | |
- name: Test | |
run: | | |
dotnet test --configuration Release --results-directory artifacts --no-build --logger 'trx;LogFileName=test-results.trx' | |
- uses: actions/upload-artifact@v3 # upload test results | |
if: success() || failure() # run this step even if previous step failed | |
with: | |
name: test-results | |
path: 'artifacts/*.trx' | |
- name: Package | |
if: github.event_name != 'pull_request' | |
run: dotnet pack --configuration Release --no-build | |
- name: Publish nuget | |
if: github.event_name != 'pull_request' | |
run: dotnet nuget push src/*/bin/Release/*.nupkg --skip-duplicate --source ${{ env.GITHUB_NUGET_SOURCE_URL }} --api-key ${{ secrets.GITHUB_TOKEN }} | |
- name: Publish Release Packages | |
if: startsWith(github.ref, 'refs/tags/v') | |
run: dotnet nuget push src/*/bin/Release/*.nupkg --source ${{ env.NUGET_SOURCE_URL }} --api-key ${{ secrets.NUGET_TOKEN }} | |
- name: Upload Artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: artifacts | |
path: artifacts |