2021-04-22 14:35:21 +08:00
|
|
|
name: Build Project
|
2021-04-21 16:30:46 +08:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
- dev
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
deploy:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
2021-09-26 10:10:21 +08:00
|
|
|
- name: Setup .NET Core 2.1
|
2021-04-21 16:30:46 +08:00
|
|
|
uses: actions/setup-dotnet@v1
|
|
|
|
with:
|
2021-09-26 10:10:21 +08:00
|
|
|
dotnet-version: 2.1.x
|
|
|
|
|
|
|
|
- name: Setup .NET Core 5
|
|
|
|
uses: actions/setup-dotnet@v1
|
|
|
|
with:
|
|
|
|
dotnet-version: 5.0.x
|
2021-04-21 16:30:46 +08:00
|
|
|
|
|
|
|
- name: Build
|
|
|
|
env:
|
|
|
|
NUGET_API_KEY: ${{secrets.NUGET_API_KEY}}
|
2021-09-26 10:10:21 +08:00
|
|
|
Bundle: True
|
2021-04-21 16:30:46 +08:00
|
|
|
run: |
|
|
|
|
dotnet restore src/BootstrapBlazor --no-cache
|
|
|
|
dotnet build src/BootstrapBlazor
|