Upload compressed archives to draft release

This commit is contained in:
ErickSkrauch 2019-04-06 19:27:08 +02:00
parent 4aac28fc45
commit 7bacec3162
No known key found for this signature in database
GPG Key ID: 669339FCBB30EE0E

View File

@ -31,16 +31,25 @@ script:
- yarn build:quiet
before_deploy:
# Prepare ssh deployment
- openssl aes-256-cbc -K $encrypted_dd5ad7a5f201_key -iv $encrypted_dd5ad7a5f201_iv -in deploy_rsa.enc -out /tmp/deploy_rsa -d
- eval "$(ssh-agent -s)"
- chmod 600 /tmp/deploy_rsa
- ssh-add /tmp/deploy_rsa
# Removing unneeded files
- rm -rf dist/messages
# Creating tar.gz and zip archives
- cd dist
- tar -zcf ../dist.tar.gz *
- zip -rq ../dist.zip *
- cd ..
deploy:
- provider: releases
api_key: "$GITHUB_TOKEN"
file_glob: true
file: dist/**/*
file:
- dist.tar.gz
- dist.zip
skip_cleanup: true
draft: true
on: