This commit is contained in:
32
.drone.yml
Normal file
32
.drone.yml
Normal 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
|
||||
Reference in New Issue
Block a user