更新 .gitea/workflows/build-action.yaml
Frontend CI/CD / build (web-office) (push) Has been cancelled
Details
Frontend CI/CD / build (web-office) (push) Has been cancelled
Details
This commit is contained in:
parent
89a3537d24
commit
8bfcca45fd
|
@ -37,15 +37,15 @@ jobs:
|
|||
git checkout test
|
||||
echo "Repository cloned and checked out to test branch."
|
||||
|
||||
# # Cache pnpm dependencies
|
||||
# - name: Cache pnpm store
|
||||
# uses: https://gitea.com/actions/cache@v3
|
||||
# id: pnpm-cache
|
||||
# with:
|
||||
# path: ~/.pnpm-store
|
||||
# key: ${{ runner.os }}-pnpm-store-${{ hashFiles('pansoft-plrl/pnpm-lock.yaml') }}
|
||||
# restore-keys: |
|
||||
# ${{ runner.os }}-pnpm-store-
|
||||
# Cache pnpm dependencies
|
||||
- name: Cache pnpm store
|
||||
uses: https://gitea.com/actions/cache@v3
|
||||
id: pnpm-cache
|
||||
with:
|
||||
path: ~/.pnpm-store
|
||||
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('pansoft-plrl/pnpm-lock.yaml') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-pnpm-store-
|
||||
|
||||
# Install dependencies and build
|
||||
- name: Install dependencies and build
|
||||
|
@ -68,7 +68,7 @@ jobs:
|
|||
cd pansoft-plrl/apps/web-office
|
||||
echo "Local files in the directory:"
|
||||
ls
|
||||
rsync -av --delete -e "ssh -o StrictHostKeyChecking=no -p ${{ vars.REMOTE_PORT }}" index.html ${{ vars.REMOTE_USER }}@${{ vars.REMOTE_HOST }}:/opt/test
|
||||
rsync -av --delete -e "ssh -o StrictHostKeyChecking=no -p ${{ vars.REMOTE_PORT }}" dist/ ${{ vars.REMOTE_USER }}@${{ vars.REMOTE_HOST }}:/opt/test
|
||||
echo "Files transferred."
|
||||
|
||||
# Execute remote commands
|
||||
|
|
Loading…
Reference in New Issue