-
Notifications
You must be signed in to change notification settings - Fork 866
38 lines (34 loc) · 1.12 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Auto Build
on:
push:
branches: [ master, develop ]
pull_request:
branches: [ master, develop ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: '7.0.x'
- name: Install dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Test EasyFrameWork
working-directory: ./test/EasyFrameWork.Test
run: dotnet test
- name: Install tools
run: |
dotnet tool install --global ZKEACMS.Publisher
dotnet tool install --global sqlite-exec
- name: Publish
working-directory: ./src/ZKEACMS.WebHost
run: publish-zkeacms
- name: Create database
run: |
mkdir ./src/ZKEACMS.WebHost/bin/Release/PublishOutput/App_Data
sqlite-exec -d ./src/ZKEACMS.WebHost/bin/Release/PublishOutput/App_Data/Database.sqlite -f ./Database/SQLite/ZKEACMS.sqlite.sql
cp -f ./Database/SQLite/appsettings.json ./src/ZKEACMS.WebHost/bin/Release/PublishOutput/appsettings.json