added git tag support.

This commit is contained in:
ruberoid 2024-03-21 23:27:42 +04:00
parent 11894685fb
commit a1e00481e7

View File

@ -9,6 +9,8 @@ clone:
steps: steps:
- name: clone - name: clone
image: alpine/git image: alpine/git
settings:
tags: true
commands: commands:
- pwd - pwd
- git clone https://gitea.musk.fun/nocr/local-env - git clone https://gitea.musk.fun/nocr/local-env
@ -32,7 +34,7 @@ steps:
- name: nocr telegram listener nuget package make & push - name: nocr telegram listener nuget package make & push
image: mcr.microsoft.com/dotnet/sdk:8.0 image: mcr.microsoft.com/dotnet/sdk:8.0
environment: environment:
VERSION: 0.1.0 VERSION: ${DRONE_TAG}
NUGETAPIKEY: NUGETAPIKEY:
from_secret: nuget_api_key from_secret: nuget_api_key
commands: 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 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 - 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