更新 .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
|
git checkout test
|
||||||
echo "Repository cloned and checked out to test branch."
|
echo "Repository cloned and checked out to test branch."
|
||||||
|
|
||||||
# # Cache pnpm dependencies
|
# Cache pnpm dependencies
|
||||||
# - name: Cache pnpm store
|
- name: Cache pnpm store
|
||||||
# uses: https://gitea.com/actions/cache@v3
|
uses: https://gitea.com/actions/cache@v3
|
||||||
# id: pnpm-cache
|
id: pnpm-cache
|
||||||
# with:
|
with:
|
||||||
# path: ~/.pnpm-store
|
path: ~/.pnpm-store
|
||||||
# key: ${{ runner.os }}-pnpm-store-${{ hashFiles('pansoft-plrl/pnpm-lock.yaml') }}
|
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('pansoft-plrl/pnpm-lock.yaml') }}
|
||||||
# restore-keys: |
|
restore-keys: |
|
||||||
# ${{ runner.os }}-pnpm-store-
|
${{ runner.os }}-pnpm-store-
|
||||||
|
|
||||||
# Install dependencies and build
|
# Install dependencies and build
|
||||||
- name: Install dependencies and build
|
- name: Install dependencies and build
|
||||||
|
@ -68,7 +68,7 @@ jobs:
|
||||||
cd pansoft-plrl/apps/web-office
|
cd pansoft-plrl/apps/web-office
|
||||||
echo "Local files in the directory:"
|
echo "Local files in the directory:"
|
||||||
ls
|
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."
|
echo "Files transferred."
|
||||||
|
|
||||||
# Execute remote commands
|
# Execute remote commands
|
||||||
|
|
Loading…
Reference in New Issue