Skip to content

Bump System.IdentityModel.Tokens.Jwt from 8.2.1 to 8.3.0 in /src/LtiAdvantage.AspNetCore #288

Bump System.IdentityModel.Tokens.Jwt from 8.2.1 to 8.3.0 in /src/LtiAdvantage.AspNetCore

Bump System.IdentityModel.Tokens.Jwt from 8.2.1 to 8.3.0 in /src/LtiAdvantage.AspNetCore #288

Workflow file for this run

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