Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 70210416d0 | |||
| a80e98df76 | |||
| f0bc6c3de0 | |||
| 1b2b28b6d8 |
17
.drone.yml
17
.drone.yml
@@ -4,24 +4,33 @@ 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: 7337ccbb62d765fedea5d8a5c0f35ada9f451363
|
||||||
base_url: https://git.orfl.xyz
|
base_url: https://git.orfl.xyz
|
||||||
files:
|
files:
|
||||||
- dist/*
|
- /dist/*
|
||||||
when:
|
when:
|
||||||
event: tag
|
event: tag
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
- name: dist
|
||||||
|
temp: {}
|
||||||
Reference in New Issue
Block a user