From 4967f5f3f83897b03198a0aa174f449b4e03ddff Mon Sep 17 00:00:00 2001 From: Dan Ballard Date: Thu, 25 Mar 2021 15:48:06 -0700 Subject: [PATCH] drone.yml: deploy stage working and sha256 --- .drone.yml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.drone.yml b/.drone.yml index 2ae65b2..9b881df 100644 --- a/.drone.yml +++ b/.drone.yml @@ -65,22 +65,20 @@ steps: environment: BUILDFILES_KEY: from_secret: buildfiles_key - GOGS_ACCOUNT_TOKEN: - from_secret: gogs_account_token secrets: [gogs_account_token] when: event: push status: [ success ] commands: - echo $BUILDFILES_KEY > ~/id_rsab64 - - echo $GOGS_ACCOUNT_TOKEN > ~/gogs_account_token - - wc ~/gogs_account_token - base64 -d ~/id_rsab64 > ~/id_rsa - chmod 400 ~/id_rsa - - ls -l -h ~/id_rsa* ~/gogs_account_token - - export DIR=libCwtch-go-`echo VERSION`-`echo BUILDDATE` + - export DIR=libCwtch-go-`cat VERSION`-`cat BUILDDATE` - mkdir $DIR - - mv libCwtch.* $DIR/ + - mv libCwtch.so libCwtch.dll cwtch.aar cwtch-sources.jar libCwtch.h $DIR/ + - cd $DIR + - find . -type f -exec sha256sum {} \; > sha256s.txt + - cd .. - scp -r -o StrictHostKeyChecking=no -i ~/id_rsa $DIR buildfiles@openprivacy.ca:/home/buildfiles/buildfiles/ - name: notify-email