mirror of
https://gitee.com/LongbowEnterprise/BootstrapBlazor.git
synced 2024-12-05 05:29:47 +08:00
a79da2013a
* 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: 增加打包脚本运行条件
33 lines
594 B
YAML
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
|