drone.yml: deploy stage working and sha256
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Dan Ballard 2021-03-25 15:48:06 -07:00
parent 3efb31e9f3
commit 4967f5f3f8
1 changed files with 5 additions and 7 deletions

View File

@ -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