Skip to content

Commit

Permalink
Update gradle.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sanggae4133 authored Feb 8, 2024
1 parent 22a730e commit 72dc67f
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,24 +88,24 @@ jobs:
path: |
build/libs/*.jar
- name: Remove past EC2 raw sorce dir
uses: appleboy/ssh-action@master
with:
key: ${{ secrets.EC2_KEY }}
host: ${{ secrets.EC2_HOST }}
username: ${{ secrets.EC2_USER }}
command: sudo rm -rf /home/ubuntu/app/code
port: 22
# - name: Remove past EC2 raw sorce dir
# uses: appleboy/ssh-action@master
# with:
# key: ${{ secrets.EC2_KEY }}
# host: ${{ secrets.EC2_HOST }}
# username: ${{ secrets.EC2_USER }}
# command: sudo rm -rf /home/ubuntu/app/code
# port: 22


- name: Upload raw sorce to EC2
uses: appleboy/scp-action@master
with:
key: ${{ secrets.EC2_KEY }}
host: ${{ secrets.EC2_HOST }}
username: ${{ secrets.EC2_USER }}
source: .
target: "/home/ubuntu/app/code"
# - name: Upload raw sorce to EC2
# uses: appleboy/scp-action@master
# with:
# key: ${{ secrets.EC2_KEY }}
# host: ${{ secrets.EC2_HOST }}
# username: ${{ secrets.EC2_USER }}
# source: .
# target: "/home/ubuntu/app/code"

- name: Start redis-server
uses: appleboy/scp-action@master
Expand Down

0 comments on commit 72dc67f

Please sign in to comment.