deps: Update to Bootstrap Icons v1.11.3 #23
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: Release | |
on: | |
push: | |
tags: | |
- 'v[0-9]+.[0-9]+.[0-9]+' | |
- 'v[0-9]+.[0-9]+.[0-9]+-*' | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Variables | |
id: vars | |
run: | | |
echo "VERSION=${GITHUB_REF#refs/*/v}" >> $GITHUB_ENV | |
echo "PRERELEASE=`[[ ${GITHUB_REF#refs/*/v*-} == ${GITHUB_REF} ]] && echo 'false' || echo 'true'`" >> $GITHUB_ENV | |
echo "CONFIGURATION=`[[ ${GITHUB_REF#refs/*/v*-} == ${GITHUB_REF} ]] && echo 'Release' || echo 'Debug'`" >> $GITHUB_ENV | |
shell: bash | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 6.0.x | |
- name: Setup Node.js environment | |
uses: actions/setup-node@v3.6.0 | |
- name: Restore .NET dependencies | |
run: dotnet restore | |
- name: Restore Node.js dependencies | |
run: npm ci | |
- name: Pre-Build | |
run: npm run build | |
- name: Run Tests | |
run: dotnet test --no-restore BootstrapIcons.AspNetCore.Tests/BootstrapIcons.AspNetCore.Tests.csproj | |
- name: Build NuGet packages | |
run: | | |
dotnet pack --no-restore --configuration ${{ env.CONFIGURATION }} -p:Version="${{ env.VERSION }}" -p:PackageVersion="${{ env.VERSION }}" BootstrapIcons.Wpf/BootstrapIcons.Wpf.csproj | |
dotnet pack --no-restore --configuration ${{ env.CONFIGURATION }} -p:Version="${{ env.VERSION }}" -p:PackageVersion="${{ env.VERSION }}" BootstrapIcons.AspNetCore/BootstrapIcons.AspNetCore.csproj | |
- name: Publish NuGet packages | |
run: | | |
dotnet nuget push BootstrapIcons.Wpf/bin/${{ env.CONFIGURATION }}/BootstrapIcons.Wpf.${{ env.VERSION }}.nupkg -k ${{ secrets.NUGET_TOKEN }} -s "https://api.nuget.org/v3/index.json" | |
dotnet nuget push BootstrapIcons.AspNetCore/bin/${{ env.CONFIGURATION }}/BootstrapIcons.AspNetCore.${{ env.VERSION }}.nupkg -k ${{ secrets.NUGET_TOKEN }} -s "https://api.nuget.org/v3/index.json" | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
prerelease: ${{ env.PRERELEASE }} | |
generate_release_notes: true | |
files: | | |
LICENSE | |
BootstrapIcons.Wpf/bin/${{ env.CONFIGURATION }}/BootstrapIcons.Wpf.${{ env.VERSION }}.nupkg | |
BootstrapIcons.AspNetCore/bin/${{ env.CONFIGURATION }}/BootstrapIcons.AspNetCore.${{ env.VERSION }}.nupkg |