Bump Microsoft.CodeAnalysis.CSharp.Workspaces from 4.8.0 to 4.9.2 #51
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: GithubActionsWIP | |
on: | |
push: | |
branches: | |
- 'main' | |
pull_request: | |
branches: | |
- 'main' | |
env: | |
buildPlatform: 'Any CPU' | |
buildConfiguration: 'Release' | |
outputCSFB: ${{github.workspace}}/siteCSFB | |
projectCSFB: 'HttpSecurity.AspNet/HttpSecurity.AspNet.csproj' | |
jobs: | |
############################################################################################################ | |
# These jobs are used to gate actions. By creating these jobs we don't need to proliferate the repo checks | |
############################################################################################################ | |
is-on-fork: | |
name: Running on a fork? | |
runs-on: ubuntu-latest | |
if: github.repository != 'Material-Blazor/HttpSecurity.AspNet' | |
steps: | |
- name: Nothing to see here | |
run: echo "" | |
is-on-material-blazor: | |
name: Running on Material-Blazor/HttpSecurity.AspNet? | |
runs-on: ubuntu-latest | |
if: github.repository == 'Material-Blazor/HttpSecurity.AspNet' | |
steps: | |
- name: Nothing to see here | |
run: echo "" | |
############################################################################################################ | |
# Build nuget package | |
############################################################################################################ | |
build-package: | |
name: Build nuget package | |
runs-on: windows-latest | |
steps: | |
- name: Set ciSuffix as env variable | |
run: echo "ciSuffix=ci.$(date +'%Y-%m-%d--%H%M')" >> $GITHUB_ENV | |
shell: bash | |
- name: Checkout repository under $GITHUB_WORKSPACE so the job can access it 🛎️ | |
uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
- name: Use dotnet | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: '8.x' | |
- name: Build HttpSecurity.AspNet 🔧 | |
run: dotnet build ${{env.projectCSFB}} --configuration ${{env.buildConfiguration}} --version-suffix ${{env.ciSuffix}} | |
- name: Generate the NuGet package 🔧 | |
run: dotnet pack ${{env.projectCSFB}} --no-build --configuration ${{env.buildConfiguration}} --output ${{env.outputCSFB}} -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg -p:Version=1.0.0-${{env.ciSuffix}} | |
- name: Display HttpSecurity.AspNet package output Ꙫ | |
run: dir ${{env.outputCSFB}} |