diff --git a/.drone.yml b/.drone.yml index 284ea15..3455ba6 100644 --- a/.drone.yml +++ b/.drone.yml @@ -67,7 +67,9 @@ steps: from_secret: buildfiles_key secrets: [gogs_account_token] when: - event: push + event: + - push + - tag status: [ success ] commands: - echo $BUILDFILES_KEY > ~/id_rsab64 @@ -82,6 +84,24 @@ steps: - cd .. - scp -r -o StrictHostKeyChecking=no -i ~/id_rsa $DIR buildfiles@openprivacy.ca:/home/buildfiles/buildfiles/ + - name: gitea-release + image: plugins/gitea-release + when: + event: tag + settings: + api_key: + from_secret: gogs_account_token + base_url: https://git.openprivacy.ca + files: + - libCwtch.so + - libCwtch.dll + - cwtch.aar + - cwtch-sources.jar + - libCwtch.h + checksum: + - sha256 + - sha512 + - name: notify-email image: drillster/drone-email settings: @@ -114,3 +134,4 @@ trigger: event: - push - pull_request + - tag