Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 3f46369022 | |||
| 593293a69a |
19
.drone.yml
19
.drone.yml
@@ -4,33 +4,26 @@ name: default
|
|||||||
steps:
|
steps:
|
||||||
- name: build
|
- name: build
|
||||||
image: mcr.microsoft.com/dotnet/sdk:5.0
|
image: mcr.microsoft.com/dotnet/sdk:5.0
|
||||||
volumes:
|
|
||||||
- name: dist
|
|
||||||
path: /dist
|
|
||||||
commands:
|
commands:
|
||||||
- cd TOOHUCardAPI
|
- cd TOOHUCardAPI
|
||||||
- dotnet restore TOOHUCardAPI.csproj
|
- dotnet restore TOOHUCardAPI.csproj
|
||||||
- mkdir build
|
- mkdir build
|
||||||
- mkdir publish
|
- mkdir publish
|
||||||
|
- mkdir dist
|
||||||
- dotnet build TOOHUCardAPI.csproj -c Release -o build
|
- dotnet build TOOHUCardAPI.csproj -c Release -o build
|
||||||
- dotnet publish TOOHUCardAPI.csproj -c Release -o publish
|
- dotnet publish TOOHUCardAPI.csproj -c Release -o publish
|
||||||
- tar -czvf /dist/TOOHUCardAPI.tar.gz publish/*
|
- tar -czvf dist/TOOHUCardAPI.tar.gz publish/*
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
- name: gitea_release
|
- name: gitea_release
|
||||||
image: plugins/gitea-release
|
image: plugins/gitea-release
|
||||||
volumes:
|
|
||||||
- name: dist
|
|
||||||
path: /dist
|
|
||||||
settings:
|
settings:
|
||||||
api_key: 7337ccbb62d765fedea5d8a5c0f35ada9f451363
|
api_key:
|
||||||
|
from_secret: gitea-api-key
|
||||||
base_url: https://git.orfl.xyz
|
base_url: https://git.orfl.xyz
|
||||||
files:
|
files:
|
||||||
- /dist/*
|
- TOOHUCardAPI/dist/*
|
||||||
when:
|
when:
|
||||||
event: tag
|
event: tag
|
||||||
|
|
||||||
volumes:
|
|
||||||
- name: dist
|
|
||||||
temp: {}
|
|
||||||
Reference in New Issue
Block a user