Skip to content

Merge branch 'develop' of github.com:SeriaWei/ZKEACMS into develop #587

Merge branch 'develop' of github.com:SeriaWei/ZKEACMS into develop

Merge branch 'develop' of github.com:SeriaWei/ZKEACMS into develop #587

Workflow file for this run

name: Auto Build
on:
push:
branches: [ master, develop ]
pull_request:
branches: [ master, develop ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET Core
uses: actions/setup-dotnet@v4
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