Skip to content
This repository has been archived by the owner on Apr 23, 2024. It is now read-only.

Commit

Permalink
fix: scp path upload directory
Browse files Browse the repository at this point in the history
  • Loading branch information
mgilangjanuar committed Jan 29, 2022
1 parent d8183db commit 621808e
Showing 1 changed file with 27 additions and 27 deletions.
54 changes: 27 additions & 27 deletions .github/workflows/build-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,23 +40,23 @@ jobs:
- name: Archive build-root.tar.gz
uses: actions/upload-artifact@v2
with:
name: build-root.tar.gz
name: build-root
path: build-root.tar.gz
- name: Compress node_modules & dist server
if: ${{ github.event_name == 'push' }}
run: tar -czf build-server.tar.gz server/node_modules server/dist
- name: Archive build-server.tar.gz
uses: actions/upload-artifact@v2
with:
name: build-server.tar.gz
name: build-server
path: build-server.tar.gz
- name: Compress node_modules & build web
if: ${{ github.event_name == 'push' }}
run: tar -czf build-web.tar.gz web/node_modules web/build
- name: Archive build-web.tar.gz
uses: actions/upload-artifact@v2
with:
name: build-web.tar.gz
name: build-web
path: build-web.tar.gz

sg1:
Expand All @@ -71,7 +71,7 @@ jobs:
- name: Upload build-root.tar.gz to sg_1
uses: appleboy/scp-action@master
with:
source: build-root.tar.gz
source: build-root/build-root.tar.gz
target: ${{ env.APP_DIR }}
host: ${{ env.DEV_HOST_SG_1 }}
username: ${{ env.DEV_USER }}
Expand All @@ -80,15 +80,15 @@ jobs:
- name: Upload build-server.tar.gz to sg_1
uses: appleboy/scp-action@master
with:
source: build-server.tar.gz
source: build-server/build-server.tar.gz
target: ${{ env.APP_DIR }}
host: ${{ env.DEV_HOST_SG_1 }}
username: ${{ env.DEV_USER }}
key: ${{ secrets.SSH_SECRET }}
- name: Upload build-web.tar.gz to sg_1
uses: appleboy/scp-action@master
with:
source: build-web.tar.gz
source: build-web/build-web.tar.gz
target: ${{ env.APP_DIR }}
host: ${{ env.DEV_HOST_SG_1 }}
username: ${{ env.DEV_USER }}
Expand Down Expand Up @@ -148,7 +148,7 @@ jobs:
- name: Upload build-root.tar.gz to sg_2
uses: appleboy/scp-action@master
with:
source: build-root.tar.gz
source: build-root/build-root.tar.gz
target: ${{ env.APP_DIR }}
host: ${{ env.DEV_HOST_SG_2 }}
username: ${{ env.DEV_USER }}
Expand All @@ -157,15 +157,15 @@ jobs:
- name: Upload build-server.tar.gz to sg_2
uses: appleboy/scp-action@master
with:
source: build-server.tar.gz
source: build-server/build-server.tar.gz
target: ${{ env.APP_DIR }}
host: ${{ env.DEV_HOST_SG_2 }}
username: ${{ env.DEV_USER }}
key: ${{ secrets.SSH_SECRET }}
- name: Upload build-web.tar.gz to sg_2
uses: appleboy/scp-action@master
with:
source: build-web.tar.gz
source: build-web/build-web.tar.gz
target: ${{ env.APP_DIR }}
host: ${{ env.DEV_HOST_SG_2 }}
username: ${{ env.DEV_USER }}
Expand Down Expand Up @@ -225,7 +225,7 @@ jobs:
- name: Upload build-root.tar.gz to sg_3
uses: appleboy/scp-action@master
with:
source: build-root.tar.gz
source: build-root/build-root.tar.gz
target: ${{ env.APP_DIR }}
host: ${{ env.DEV_HOST_SG_3 }}
username: ${{ env.DEV_USER }}
Expand All @@ -234,15 +234,15 @@ jobs:
- name: Upload build-server.tar.gz to sg_3
uses: appleboy/scp-action@master
with:
source: build-server.tar.gz
source: build-server/build-server.tar.gz
target: ${{ env.APP_DIR }}
host: ${{ env.DEV_HOST_SG_3 }}
username: ${{ env.DEV_USER }}
key: ${{ secrets.SSH_SECRET }}
- name: Upload build-web.tar.gz to sg_3
uses: appleboy/scp-action@master
with:
source: build-web.tar.gz
source: build-web/build-web.tar.gz
target: ${{ env.APP_DIR }}
host: ${{ env.DEV_HOST_SG_3 }}
username: ${{ env.DEV_USER }}
Expand Down Expand Up @@ -302,7 +302,7 @@ jobs:
- name: Upload build-root.tar.gz to ge_1
uses: appleboy/scp-action@master
with:
source: build-root.tar.gz
source: build-root/build-root.tar.gz
target: ${{ env.APP_DIR }}
host: ${{ env.DEV_HOST_GE_1 }}
username: ${{ env.DEV_USER }}
Expand All @@ -311,15 +311,15 @@ jobs:
- name: Upload build-server.tar.gz to ge_1
uses: appleboy/scp-action@master
with:
source: build-server.tar.gz
source: build-server/build-server.tar.gz
target: ${{ env.APP_DIR }}
host: ${{ env.DEV_HOST_GE_1 }}
username: ${{ env.DEV_USER }}
key: ${{ secrets.SSH_SECRET }}
- name: Upload build-web.tar.gz to ge_1
uses: appleboy/scp-action@master
with:
source: build-web.tar.gz
source: build-web/build-web.tar.gz
target: ${{ env.APP_DIR }}
host: ${{ env.DEV_HOST_GE_1 }}
username: ${{ env.DEV_USER }}
Expand Down Expand Up @@ -379,7 +379,7 @@ jobs:
- name: Upload build-root.tar.gz to ge_2
uses: appleboy/scp-action@master
with:
source: build-root.tar.gz
source: build-root/build-root.tar.gz
target: ${{ env.APP_DIR }}
host: ${{ env.DEV_HOST_GE_2 }}
username: ${{ env.DEV_USER }}
Expand All @@ -388,15 +388,15 @@ jobs:
- name: Upload build-server.tar.gz to ge_2
uses: appleboy/scp-action@master
with:
source: build-server.tar.gz
source: build-server/build-server.tar.gz
target: ${{ env.APP_DIR }}
host: ${{ env.DEV_HOST_GE_2 }}
username: ${{ env.DEV_USER }}
key: ${{ secrets.SSH_SECRET }}
- name: Upload build-web.tar.gz to ge_2
uses: appleboy/scp-action@master
with:
source: build-web.tar.gz
source: build-web/build-web.tar.gz
target: ${{ env.APP_DIR }}
host: ${{ env.DEV_HOST_GE_2 }}
username: ${{ env.DEV_USER }}
Expand Down Expand Up @@ -456,7 +456,7 @@ jobs:
- name: Upload build-root.tar.gz to ge_db
uses: appleboy/scp-action@master
with:
source: build-root.tar.gz
source: build-root/build-root.tar.gz
target: ${{ env.APP_DIR }}
host: ${{ env.DEV_HOST_GE_DB }}
username: ${{ env.DEV_USER }}
Expand All @@ -465,15 +465,15 @@ jobs:
- name: Upload build-server.tar.gz to ge_db
uses: appleboy/scp-action@master
with:
source: build-server.tar.gz
source: build-server/build-server.tar.gz
target: ${{ env.APP_DIR }}
host: ${{ env.DEV_HOST_GE_DB }}
username: ${{ env.DEV_USER }}
key: ${{ secrets.SSH_SECRET }}
- name: Upload build-web.tar.gz to ge_db
uses: appleboy/scp-action@master
with:
source: build-web.tar.gz
source: build-web/build-web.tar.gz
target: ${{ env.APP_DIR }}
host: ${{ env.DEV_HOST_GE_DB }}
username: ${{ env.DEV_USER }}
Expand Down Expand Up @@ -533,7 +533,7 @@ jobs:
- name: Upload build-root.tar.gz to us_db
uses: appleboy/scp-action@master
with:
source: build-root.tar.gz
source: build-root/build-root.tar.gz
target: ${{ env.APP_DIR }}
host: ${{ env.DEV_HOST_US_DB }}
username: ${{ env.DEV_USER }}
Expand All @@ -542,15 +542,15 @@ jobs:
- name: Upload build-server.tar.gz to us_db
uses: appleboy/scp-action@master
with:
source: build-server.tar.gz
source: build-server/build-server.tar.gz
target: ${{ env.APP_DIR }}
host: ${{ env.DEV_HOST_US_DB }}
username: ${{ env.DEV_USER }}
key: ${{ secrets.SSH_SECRET }}
- name: Upload build-web.tar.gz to us_db
uses: appleboy/scp-action@master
with:
source: build-web.tar.gz
source: build-web/build-web.tar.gz
target: ${{ env.APP_DIR }}
host: ${{ env.DEV_HOST_US_DB }}
username: ${{ env.DEV_USER }}
Expand Down Expand Up @@ -610,7 +610,7 @@ jobs:
- name: Upload build-root.tar.gz to us_1
uses: appleboy/scp-action@master
with:
source: build-root.tar.gz
source: build-root/build-root.tar.gz
target: ${{ env.APP_DIR }}
host: ${{ env.DEV_HOST_US_1 }}
username: ${{ env.DEV_USER }}
Expand All @@ -619,15 +619,15 @@ jobs:
- name: Upload build-server.tar.gz to us_1
uses: appleboy/scp-action@master
with:
source: build-server.tar.gz
source: build-server/build-server.tar.gz
target: ${{ env.APP_DIR }}
host: ${{ env.DEV_HOST_US_1 }}
username: ${{ env.DEV_USER }}
key: ${{ secrets.SSH_SECRET }}
- name: Upload build-web.tar.gz to us_1
uses: appleboy/scp-action@master
with:
source: build-web.tar.gz
source: build-web/build-web.tar.gz
target: ${{ env.APP_DIR }}
host: ${{ env.DEV_HOST_US_1 }}
username: ${{ env.DEV_USER }}
Expand Down

0 comments on commit 621808e

Please sign in to comment.