更新 .gitea/workflows/build-action.yaml
Frontend CI/CD / build (web-office) (push) Failing after 7s Details

This commit is contained in:
z9130 2024-09-16 18:54:41 +08:00
parent f5b2f75992
commit 33d37ebfe5
1 changed files with 14 additions and 14 deletions

View File

@ -15,10 +15,10 @@ jobs:
steps:
- name: Install Git
run: |
apt-get update
apt-get install -y git
# - name: Install Git
# run: |
# apt-get update
# apt-get install -y git
- name: Output Node.js and npm version
run: |
@ -48,20 +48,20 @@ jobs:
npm install -g pnpm
echo "pnpm installed."
- name: Install dependencies and build
run: |
cd pansoft-plrl
echo "Installing dependencies..."
pnpm install --no-frozen-lockfile
echo "Dependencies installed."
echo "Building project..."
pnpm build --filter ${{ matrix.project }}
echo "Project built."
# - name: Install dependencies and build
# run: |
# cd pansoft-plrl
# echo "Installing dependencies..."
# pnpm install --no-frozen-lockfile
# echo "Dependencies installed."
# echo "Building project..."
# pnpm build --filter ${{ matrix.project }}
# echo "Project built."
- name: Transfer files to target server
run: |
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."
- name: Execute remote commands