Skip to content

Bump System.IdentityModel.Tokens.Jwt from 6.32.2 to 7.0.2 in /src/LtiAdvantage.IdentityModel #201

Bump System.IdentityModel.Tokens.Jwt from 6.32.2 to 7.0.2 in /src/LtiAdvantage.IdentityModel

Bump System.IdentityModel.Tokens.Jwt from 6.32.2 to 7.0.2 in /src/LtiAdvantage.IdentityModel #201

Workflow file for this run

name: CI
on:
push:
branches:
- master
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 }}
- 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