Skip to content

Commit

Permalink
fix(deploy): fix before script to seploy ec2
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabián Vega authored and Fabián Vega committed Mar 29, 2024
1 parent c3ba832 commit e5079cf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@ jobs:
REMOTE_USER: ${{ secrets.EC2_USER }}
SOURCE: ./dist
TARGET: /home/${{ secrets.EC2_USER }}
SCRIPT_BEFORE: sudo mkdir -p /home/${{ secrets.EC2_USER }}/dist
SCRIPT_BEFORE: |
temp-dist="/home/${{ secrets.EC2_USER }}/dist"
sudo mkdir -p $temp-dist
sudo chmod 771 $temp-dist
- name: Executing remote ssh commands using ssh key
uses: appleboy/ssh-action@master
Expand Down

0 comments on commit e5079cf

Please sign in to comment.