this should work
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2022-02-03 01:12:06 -05:00
parent f0bc6c3de0
commit a80e98df76

View File

@@ -4,25 +4,34 @@ name: default
steps:
- name: build
image: mcr.microsoft.com/dotnet/sdk:5.0
volumes:
- name: dist
path: /dist
commands:
- cd TOOHUCardAPI
- dotnet restore TOOHUCardAPI.csproj
- mkdir build
- mkdir publish
- mkdir dist
- dotnet build TOOHUCardAPI.csproj -c Release -o build
- dotnet publish TOOHUCardAPI.csproj -c Release -o publish
- tar -czvf dist/TOOHUCardAPI.tar.gz publish/*
- tar -czvf /dist/TOOHUCardAPI.tar.gz publish/*
- ls -l dist
- name: gitea_release
image: plugins/gitea-release
volumes:
- name: dist
path: /dist
settings:
api_key: 7337ccbb62d765fedea5d8a5c0f35ada9f451363
base_url: https://git.orfl.xyz
files:
- dist/*
- /dist/*
when:
event: tag
volumes:
- name: dist
temp: {}