File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed
Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change 88 - stage : test
99 node_js : node
1010
11+ - stage : release
12+ before_deploy :
13+ # Decrypt the git_deploy_key.enc key into /tmp/git_deploy_key
14+ - openssl aes-256-cbc -K $encrypted_5690340abf23_key -iv $encrypted_5690340abf23_iv -in git_deploy_key.enc -out /tmp/git_deploy_key -d
15+ # Make sure only the current user can read the private key
16+ - chmod 600 /tmp/git_deploy_key
17+ # Create a script to return the passphrase environment variable to ssh-add
18+ - echo 'echo ${SSH_PASSPHRASE}' > /tmp/askpass && chmod +x /tmp/askpass
19+ # Start the authentication agent
20+ - eval "$(ssh-agent -s)"
21+ # Add the key to the authentication agent
22+ - DISPLAY=":0.0" SSH_ASKPASS="/tmp/askpass" setsid ssh-add /tmp/git_deploy_key </dev/null
23+ deploy :
24+ provider : script
25+ skip_cleanup : true
26+ script :
27+ - echo "npx semantic-release"
28+
1129notifications :
1230 email :
1331 on_success : never
You can’t perform that action at this time.
0 commit comments