修复提交留言时报错问题 #559
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: 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: '8.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 |