File tree Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change 14
14
node-version : [16.x]
15
15
16
16
steps :
17
+ - name : Print workspace directory
18
+ run : echo $GITHUB_WORKSPACE
19
+
17
20
- name : Checkout Repository
18
21
uses : actions/checkout@v3
19
22
@@ -30,13 +33,17 @@ jobs:
30
33
key : ${{ secrets.SSH_PRIVATE_KEY }}
31
34
port : 22
32
35
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
38
44
39
45
env :
46
+ BRANCH_NAME : dev
40
47
NODE_ENV : development
41
48
SERVER_PROFILE : development
42
49
PROJECT_PATH : ~/actions-runner/_work/A.fume.Server/A.fume.Server/development
You can’t perform that action at this time.
0 commit comments