chore: updated DynamicLinq library to mitigate a vulnerability alert. #38
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: .NET Core | |
on: | |
push: | |
tags: [ 'v*' ] | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup .NET Core | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: 7.0.x | |
- name: Install dependencies | |
run: dotnet restore | |
- name: Build | |
run: dotnet build --configuration Release --no-restore | |
#- name: Test | |
# run: dotnet test --configuration Release --no-build --no-restore --verbosity normal | |
- name: Generate documentation (retrieve global tool) | |
run: dotnet tool install xmldocmd -g | |
- name: Generate documentation (generate) | |
run: xmldocmd Wokhan.Core/bin/Release/net6.0/Wokhan.Core.dll docs/generated --source https://github.com/${{ github.repository }} --clean | |
- name: Generate documentation (commit) | |
uses: EndBug/[email protected] | |
with: | |
add: docs | |
message: Automated documentation update | |
#Source: https://dusted.codes/github-actions-for-dotnet-core-nuget-packages#drive-nuget-version-from-git-tags | |
- name: Set Nuget package version | |
run: | | |
arrTag=(${GITHUB_REF//\// }) | |
VERSION="${arrTag[2]}" | |
VERSION="${VERSION//v}" | |
echo "PACKAGE_VERSION=$VERSION" >> $GITHUB_ENV | |
- name: Pack | |
run: dotnet pack --no-build --no-restore --output Wokhan.Core/bin/Release/ --configuration Release -p:PackageVersion=${{ env.PACKAGE_VERSION }} | |
- name: Publish | |
run: dotnet nuget push Wokhan.Core/bin/Release/Wokhan.Core.${{ env.PACKAGE_VERSION }}.nupkg --api-key ${{ secrets.nuget_apikey }} --source https://api.nuget.org/v3/index.json |