Skip to content

Commit 13b675b

Browse files
committed
Reflect the changes so far in deployment-development.yml
1 parent 4c4844c commit 13b675b

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

.github/workflows/deploy-development.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ jobs:
1414
node-version: [16.x]
1515

1616
steps:
17+
- name: Print workspace directory
18+
run: echo $GITHUB_WORKSPACE
19+
1720
- name: Checkout Repository
1821
uses: actions/checkout@v3
1922

@@ -30,13 +33,17 @@ jobs:
3033
key: ${{ secrets.SSH_PRIVATE_KEY }}
3134
port: 22
3235
script: |
33-
cp ~/config-injection/ecosystem-${{ env.SERVER_PROFILE }}.json ${{ env.PROJECT_PATH }}/ecosystem.json
34-
cp ~/config-injection/envs/.env.${{ env.NODE_ENV }} ${{ env.PROJECT_PATH }}/.env
35-
cd ${{ env.PROJECT_PATH }}
36-
bash script/prebuild.sh
37-
sh script/reload.sh
36+
cp ~/config-injection/ecosystem-${{ env.SERVER_PROFILE }}.json ${{ env.PROJECT_PATH }}/ecosystem.json &&
37+
cp ~/config-injection/envs/.env.${{ env.NODE_ENV }} ${{ env.PROJECT_PATH }}/.env &&
38+
cd ${{ env.PROJECT_PATH }} &&
39+
git fetch --all &&
40+
git checkout ${{ env.BRANCH_NAME }} &&
41+
git pull origin ${{ env.BRANCH_NAME }} &&
42+
bash script/prebuild.sh &&
43+
bash script/reload.sh
3844
3945
env:
46+
BRANCH_NAME: dev
4047
NODE_ENV: development
4148
SERVER_PROFILE: development
4249
PROJECT_PATH: ~/actions-runner/_work/A.fume.Server/A.fume.Server/development

0 commit comments

Comments
 (0)