Skip to content

Commit

Permalink
fix: upload binary file
Browse files Browse the repository at this point in the history
  • Loading branch information
AfandyW committed Oct 7, 2024
1 parent 107091e commit dcdff2f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/development.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ jobs:
- name: Archive Build Output
run: tar -czvf main.tar.gz main

- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: build-artifact
path: main.tar.gz

deploy:
runs-on: ubuntu-latest
needs: build
Expand All @@ -35,6 +41,11 @@ jobs:
- name: Checkout Code
uses: actions/checkout@v2

- name: Download Build Artifact
uses: actions/download-artifact@v3
with:
name: build-artifact

- name: Deploy to Development Environment
env:
VPS_IP: ${{ secrets.VPS_IP }}
Expand All @@ -46,6 +57,7 @@ jobs:
chmod 600 vps_key.pem
scp -o StrictHostKeyChecking=no -i vps_key.pem main.tar.gz $VPS_USER@$VPS_IP:/home/hmcroot/app/development/lms-be/
ssh -o StrictHostKeyChecking=no -i vps_key.pem $VPS_USER@$VPS_IP "
cd /home/hmcroot/app/development/lms-be &&
rm -f main &&
tar -xzvf main.tar.gz &&
Expand Down

0 comments on commit dcdff2f

Please sign in to comment.