db changes and build pipeline
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2022-07-15 12:21:37 -04:00
parent 5337e7ccb8
commit e6d6b629db
30 changed files with 1332 additions and 132 deletions

32
.drone.yml Normal file
View File

@@ -0,0 +1,32 @@
kind: pipeline
name: default
steps:
- name: build
image: mcr.microsoft.com/dotnet/sdk:6.0
commands:
- dotnet restore *.sln
- mkdir build
- mkdir publish
- mkdir publish/api
- mkdir publish/frontend
- mkdir dist
- dotnet build *.sln -c Release -o build
- dotnet publish WebNovelPortalAPI/*.csproj -c Release -o publish/api
- dotnet publish WebNovelPortal/*.csproj -c Release -o publish/frontend
- tar -czvf dist/API.tar.gz publish/api/*
- tar -czvf dist/Frontend.tar.gz publish/frontend/*
- name: gitea_release
image: plugins/gitea-release
settings:
api_key:
from_secret: gitea-api-key
base_url: https://git.orfl.xyz
files:
- dist/*
when:
event: tag