Skip to content

Commit

Permalink
Update auto-deployment.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
wwingyou authored Mar 24, 2024
1 parent 008bb07 commit 13f6ced
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/auto-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ jobs:

runs-on: ubuntu-latest

env:
host: ${{ secrets.EC2_HOST }}
username: ${{ secrets.EC2_USERNAME }}
private_key: ${{ secrets.EC2_PRIVATE_KEY }}

steps:
- uses: actions/[email protected]
- name: Show git status
Expand All @@ -35,10 +40,6 @@ jobs:
./gradlew bootJar
./gradlew jarDir
- name: Connect to EC2
env:
host: ${{ secrets.EC2_HOST }}
username: ${{ secrets.EC2_USERNAME }}
private_key: ${{ secrets.EC2_PRIVATE_KEY }}
run: |
echo "$private_key" > private_key.pem
chmod 400 private_key.pem
Expand Down

0 comments on commit 13f6ced

Please sign in to comment.