mirror of
https://github.com/elyby/accounts-frontend.git
synced 2024-11-27 01:02:14 +05:30
Upload compressed archives to draft release
This commit is contained in:
parent
4aac28fc45
commit
7bacec3162
13
.travis.yml
13
.travis.yml
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user