更新 .gitea/workflows/build-action.yaml
Frontend CI/CD / build (web-office) (push) Failing after 7s
Details
Frontend CI/CD / build (web-office) (push) Failing after 7s
Details
This commit is contained in:
parent
f5b2f75992
commit
33d37ebfe5
|
@ -15,10 +15,10 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: Install Git
|
# - name: Install Git
|
||||||
run: |
|
# run: |
|
||||||
apt-get update
|
# apt-get update
|
||||||
apt-get install -y git
|
# apt-get install -y git
|
||||||
|
|
||||||
- name: Output Node.js and npm version
|
- name: Output Node.js and npm version
|
||||||
run: |
|
run: |
|
||||||
|
@ -48,20 +48,20 @@ jobs:
|
||||||
npm install -g pnpm
|
npm install -g pnpm
|
||||||
echo "pnpm installed."
|
echo "pnpm installed."
|
||||||
|
|
||||||
- name: Install dependencies and build
|
# - name: Install dependencies and build
|
||||||
run: |
|
# run: |
|
||||||
cd pansoft-plrl
|
# cd pansoft-plrl
|
||||||
echo "Installing dependencies..."
|
# echo "Installing dependencies..."
|
||||||
pnpm install --no-frozen-lockfile
|
# pnpm install --no-frozen-lockfile
|
||||||
echo "Dependencies installed."
|
# echo "Dependencies installed."
|
||||||
echo "Building project..."
|
# echo "Building project..."
|
||||||
pnpm build --filter ${{ matrix.project }}
|
# pnpm build --filter ${{ matrix.project }}
|
||||||
echo "Project built."
|
# echo "Project built."
|
||||||
|
|
||||||
- name: Transfer files to target server
|
- name: Transfer files to target server
|
||||||
run: |
|
run: |
|
||||||
echo "Transferring files..."
|
echo "Transferring files..."
|
||||||
sshpass -p "zxs123123" scp -o StrictHostKeyChecking=no -r pansoft-plrl/apps/dist/* root@172.19.183.27:/opt/pansoft
|
sshpass -p "zxs123123" scp -o StrictHostKeyChecking=no -r pansoft-plrl/apps/* root@172.19.183.27:/opt/pansoft
|
||||||
echo "Files transferred."
|
echo "Files transferred."
|
||||||
|
|
||||||
- name: Execute remote commands
|
- name: Execute remote commands
|
||||||
|
|
Loading…
Reference in New Issue