Avoid external checkout action in deploy workflow
Deploy personal site / deploy (push) Failing after 36s
Deploy personal site / deploy (push) Failing after 36s
This commit is contained in:
@@ -12,13 +12,19 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
NODE_HOME: /www/server/nodejs/node-v22.9.0-linux-x64-glibc-217
|
NODE_HOME: /www/server/nodejs/node-v22.9.0-linux-x64-glibc-217
|
||||||
DEPLOY_DIR: /www/wwwroot/flys_blog
|
DEPLOY_DIR: /www/wwwroot/flys_blog
|
||||||
|
REPO_URL: http://124.221.147.173:3000/fly/fly-personal-site.git
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
run: |
|
||||||
|
rm -rf repo
|
||||||
|
git clone --branch master --depth 1 "$REPO_URL" repo
|
||||||
|
cd repo
|
||||||
|
git rev-parse --short HEAD
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
|
cd repo
|
||||||
export PATH="$NODE_HOME/bin:$PATH"
|
export PATH="$NODE_HOME/bin:$PATH"
|
||||||
node -v
|
node -v
|
||||||
npm -v
|
npm -v
|
||||||
@@ -28,6 +34,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Deploy
|
- name: Deploy
|
||||||
run: |
|
run: |
|
||||||
|
cd repo
|
||||||
rm -rf "$DEPLOY_DIR.tmp"
|
rm -rf "$DEPLOY_DIR.tmp"
|
||||||
mkdir -p "$DEPLOY_DIR.tmp"
|
mkdir -p "$DEPLOY_DIR.tmp"
|
||||||
cp -a out/. "$DEPLOY_DIR.tmp"/
|
cp -a out/. "$DEPLOY_DIR.tmp"/
|
||||||
|
|||||||
Reference in New Issue
Block a user