added git tag support.
This commit is contained in:
parent
11894685fb
commit
a1e00481e7
@ -9,6 +9,8 @@ clone:
|
||||
steps:
|
||||
- name: clone
|
||||
image: alpine/git
|
||||
settings:
|
||||
tags: true
|
||||
commands:
|
||||
- pwd
|
||||
- git clone https://gitea.musk.fun/nocr/local-env
|
||||
@ -32,7 +34,7 @@ steps:
|
||||
- name: nocr telegram listener nuget package make & push
|
||||
image: mcr.microsoft.com/dotnet/sdk:8.0
|
||||
environment:
|
||||
VERSION: 0.1.0
|
||||
VERSION: ${DRONE_TAG}
|
||||
NUGETAPIKEY:
|
||||
from_secret: nuget_api_key
|
||||
commands:
|
||||
@ -40,3 +42,7 @@ steps:
|
||||
- dotnet pack ./local-env/telegram-listener/src/Nocr.TelegramListener.Async.Api.Contracts/Nocr.TelegramListener.Async.Api.Contracts.csproj
|
||||
- dotnet nuget push ./local-env/telegram-listener/src/Nocr.TelegramListener.Async.Api.Contracts/bin/*/*.nupkg --api-key $NUGETAPIKEY --source https://api.nuget.org/v3/index.json
|
||||
|
||||
trigger:
|
||||
event:
|
||||
- tag
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user