deploy #19
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: deploy | |
on: | |
workflow_dispatch: | |
jobs: | |
deploy: | |
name: "Deploy" | |
runs-on: ubuntu-latest | |
steps: | |
- name: Temporarily save SSH key to file | |
run: | | |
echo "${{ secrets.SSH_DEPLOY_KEY }}" > deploy_key | |
chmod 600 deploy_key | |
- name: Run deployment via SSH | |
run: ssh -o "StrictHostKeyChecking=no" -i deploy_key [email protected] deploy-frontend | |
- name: Clean SSH key | |
run: rm -f deploy_key |