BootstrapBlazor3/.github/workflows/build.yml
Argo a79da2013a !1900 chore(#I4BU04): add clean method before bundle css and scripts
* chore: add env variant
* chore: 增加 dotnet bundle 支持
* chore: 增加 --no-color 参数
* chore: 更新脚本增加 clean 命令
* chore: update sdks for 2.1 and 5.0
* chore: update sdks
* chore: update sdks
* chore: update netcore sdk 5.0.x
* chore: update netcore 5.0 sdk
* chore: update netcore 2.1 sdk
* chore: 增加 netcore 2.1 环境安装
* chore: 更新 build action 脚本
* chore: 增加打包脚本运行条件
2021-09-26 02:10:21 +00:00

33 lines
594 B
YAML

name: Build Project
on:
push:
branches:
- main
- dev
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core 2.1
uses: actions/setup-dotnet@v1
with:
dotnet-version: 2.1.x
- name: Setup .NET Core 5
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.x
- name: Build
env:
NUGET_API_KEY: ${{secrets.NUGET_API_KEY}}
Bundle: True
run: |
dotnet restore src/BootstrapBlazor --no-cache
dotnet build src/BootstrapBlazor