Merge pull request #4858 from bitfoundation/develop #47
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: Prerelease nuget packages | |
on: | |
workflow_dispatch: | |
push: | |
tags: | |
- 'v-*' | |
jobs: | |
build-publish: | |
name: build & publish | |
runs-on: windows-latest | |
steps: | |
- name: Checkout source code | |
uses: actions/checkout@v2 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v3 | |
with: | |
global-json-file: src/global.json | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: latest | |
- name: dotnet restore BlazorUI | |
run: dotnet restore src/BlazorUI/Bit.BlazorUI/Bit.BlazorUI.csproj /p:WarningLevel=0 /p:RunCodeAnalysis=false | |
- name: dotnet msbuild BlazorUI (1) | |
run: dotnet msbuild src/BlazorUI/Bit.BlazorUI/Bit.BlazorUI.csproj /P:Configuration=Release /p:GeneratePackageOnBuild=false -m:1 /p:WarningLevel=0 /p:RunCodeAnalysis=false | |
- name: dotnet msbuild BlazorUI (2) | |
run: dotnet msbuild src/BlazorUI/Bit.BlazorUI/Bit.BlazorUI.csproj /P:Configuration=Release /p:GeneratePackageOnBuild=false -m:1 /p:WarningLevel=0 /p:RunCodeAnalysis=false | |
- name: dotnet pack BlazorUI | |
run: dotnet pack src/BlazorUI/Bit.BlazorUI/Bit.BlazorUI.csproj --output . --configuration Release | |
- name: dotnet restore BlazorUI.Extras | |
run: dotnet restore src/BlazorUI/Bit.BlazorUI.Extras/Bit.BlazorUI.Extras.csproj /p:WarningLevel=0 /p:RunCodeAnalysis=false | |
- name: dotnet msbuild BlazorUI.Extras (1) | |
run: dotnet msbuild src/BlazorUI/Bit.BlazorUI.Extras/Bit.BlazorUI.Extras.csproj /P:Configuration=Release /p:GeneratePackageOnBuild=false -m:1 /p:WarningLevel=0 /p:RunCodeAnalysis=false | |
- name: dotnet msbuild BlazorUI.Extras (2) | |
run: dotnet msbuild src/BlazorUI/Bit.BlazorUI.Extras/Bit.BlazorUI.Extras.csproj /P:Configuration=Release /p:GeneratePackageOnBuild=false -m:1 /p:WarningLevel=0 /p:RunCodeAnalysis=false | |
- name: dotnet pack BlazorUI.Extras | |
run: dotnet pack src/BlazorUI/Bit.BlazorUI.Extras/Bit.BlazorUI.Extras.csproj --output . --configuration Release | |
- name: dotnet restore BlazorUI.Assets | |
run: dotnet restore src/BlazorUI/Bit.BlazorUI.Assets/Bit.BlazorUI.Assets.csproj /p:WarningLevel=0 /p:RunCodeAnalysis=false | |
- name: dotnet msbuild BlazorUI.Assets (1) | |
run: dotnet msbuild src/BlazorUI/Bit.BlazorUI.Assets/Bit.BlazorUI.Assets.csproj /P:Configuration=Release /p:GeneratePackageOnBuild=false -m:1 /p:WarningLevel=0 /p:RunCodeAnalysis=false | |
- name: dotnet msbuild BlazorUI.Assets (2) | |
run: dotnet msbuild src/BlazorUI/Bit.BlazorUI.Assets/Bit.BlazorUI.Assets.csproj /P:Configuration=Release /p:GeneratePackageOnBuild=false -m:1 /p:WarningLevel=0 /p:RunCodeAnalysis=false | |
- name: dotnet pack BlazorUI.Assets | |
run: dotnet pack src/BlazorUI/Bit.BlazorUI.Assets/Bit.BlazorUI.Assets.csproj --output . --configuration Release | |
- name: dotnet restore BlazorUI.Icons | |
run: dotnet restore src/BlazorUI/Bit.BlazorUI.Icons/Bit.BlazorUI.Icons.csproj /p:WarningLevel=0 /p:RunCodeAnalysis=false | |
- name: dotnet msbuild BlazorUI.Icons (1) | |
run: dotnet msbuild src/BlazorUI/Bit.BlazorUI.Icons/Bit.BlazorUI.Icons.csproj /P:Configuration=Release /p:GeneratePackageOnBuild=false -m:1 /p:WarningLevel=0 /p:RunCodeAnalysis=false | |
- name: dotnet msbuild BlazorUI.Icons (2) | |
run: dotnet msbuild src/BlazorUI/Bit.BlazorUI.Icons/Bit.BlazorUI.Icons.csproj /P:Configuration=Release /p:GeneratePackageOnBuild=false -m:1 /p:WarningLevel=0 /p:RunCodeAnalysis=false | |
- name: dotnet pack BlazorUI.Icons | |
run: dotnet pack src/BlazorUI/Bit.BlazorUI.Icons/Bit.BlazorUI.Icons.csproj --output . --configuration Release | |
- name: dotnet restore Bswup | |
run: dotnet restore src/Bswup/Bit.Bswup/Bit.Bswup.csproj /p:WarningLevel=0 /p:RunCodeAnalysis=false | |
- name: dotnet msbuild Bswup (1) | |
run: dotnet msbuild src/Bswup/Bit.Bswup/Bit.Bswup.csproj /P:Configuration=Release /p:GeneratePackageOnBuild=false -m:1 /p:WarningLevel=0 /p:RunCodeAnalysis=false | |
- name: dotnet msbuild Bswup (2) | |
run: dotnet msbuild src/Bswup/Bit.Bswup/Bit.Bswup.csproj /P:Configuration=Release /p:GeneratePackageOnBuild=false -m:1 /p:WarningLevel=0 /p:RunCodeAnalysis=false | |
- name: dotnet pack Bswup | |
run: dotnet pack src/Bswup/Bit.Bswup/Bit.Bswup.csproj --output . --configuration Release | |
- name: dotnet restore Bup | |
run: dotnet restore src/Bup/Bit.Bup/Bit.Bup.csproj /p:WarningLevel=0 /p:RunCodeAnalysis=false | |
- name: dotnet msbuild Bup (1) | |
run: dotnet msbuild src/Bup/Bit.Bup/Bit.Bup.csproj /P:Configuration=Release /p:GeneratePackageOnBuild=false -m:1 /p:WarningLevel=0 /p:RunCodeAnalysis=false | |
- name: dotnet msbuild Bup (2) | |
run: dotnet msbuild src/Bup/Bit.Bup/Bit.Bup.csproj /P:Configuration=Release /p:GeneratePackageOnBuild=false -m:1 /p:WarningLevel=0 /p:RunCodeAnalysis=false | |
- name: dotnet pack Bup | |
run: dotnet pack src/Bup/Bit.Bup/Bit.Bup.csproj --output . --configuration Release | |
- name: dotnet restore Butil | |
run: dotnet restore src/Butil/Bit.Butil/Bit.Butil.csproj /p:WarningLevel=0 /p:RunCodeAnalysis=false | |
- name: dotnet msbuild Butil (1) | |
run: dotnet msbuild src/Butil/Bit.Butil/Bit.Butil.csproj /P:Configuration=Release /p:GeneratePackageOnBuild=false -m:1 /p:WarningLevel=0 /p:RunCodeAnalysis=false | |
- name: dotnet msbuild Butil (2) | |
run: dotnet msbuild src/Butil/Bit.Butil/Bit.Butil.csproj /P:Configuration=Release /p:GeneratePackageOnBuild=false -m:1 /p:WarningLevel=0 /p:RunCodeAnalysis=false | |
- name: dotnet pack Butil | |
run: dotnet pack src/Butil/Bit.Butil/Bit.Butil.csproj --output . --configuration Release | |
- name: dotnet restore CodeAnalyzers | |
run: dotnet restore src/CodeAnalyzers/Bit.CodeAnalyzers/Bit.CodeAnalyzers.csproj /p:WarningLevel=0 /p:RunCodeAnalysis=false | |
- name: dotnet msbuild CodeAnalyzers | |
run: dotnet msbuild src/CodeAnalyzers/Bit.CodeAnalyzers/Bit.CodeAnalyzers.csproj /P:Configuration=Release /p:GeneratePackageOnBuild=false /p:WarningLevel=0 /p:RunCodeAnalysis=false | |
- name: dotnet pack CodeAnalyzer | |
run: dotnet pack src/CodeAnalyzers/Bit.CodeAnalyzers/Bit.CodeAnalyzers.csproj --output . --configuration Release | |
- name: dotnet restore SourceGenerators | |
run: dotnet restore src/SourceGenerators/Bit.SourceGenerators/Bit.SourceGenerators.csproj /p:WarningLevel=0 /p:RunCodeAnalysis=false | |
- name: dotnet msbuild SourceGenerators | |
run: dotnet msbuild src/SourceGenerators/Bit.SourceGenerators/Bit.SourceGenerators.csproj /P:Configuration=Release /p:GeneratePackageOnBuild=false /p:WarningLevel=0 /p:RunCodeAnalysis=false | |
- name: dotnet pack SourceGenerators | |
run: dotnet pack src/SourceGenerators/Bit.SourceGenerators/Bit.SourceGenerators.csproj --output . --configuration Release | |
- name: dotnet pack TodoTemplate | |
run: dotnet pack src/Templates/TodoTemplate/Bit.TodoTemplate.ProjectTemplate.csproj --output . --configuration Release | |
- name: dotnet pack AdminPanel | |
run: dotnet pack src/Templates/AdminPanel/Bit.AdminPanel.ProjectTemplate.csproj --output . --configuration Release | |
- name: dotnet pack BlazorServer | |
run: dotnet pack src/Templates/BlazorServer/Bit.BlazorServer.ProjectTemplate.csproj --output . --configuration Release | |
- name: dotnet pack BlazorWasm | |
run: dotnet pack src/Templates/BlazorWasm/Bit.BlazorWasm.ProjectTemplate.csproj --output . --configuration Release | |
- name: dotnet pack BlazorDual | |
run: dotnet pack src/Templates/BlazorDual/Bit.BlazorDual.ProjectTemplate.csproj --output . --configuration Release | |
- name: dotnet nuget push | |
run: dotnet nuget push *.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{secrets.NUGET_ORG_API_KEY}} --skip-duplicate |