Github操作将在部署后删除所有更改
我决定在Github上尝试操作,结果卡住了, 我使用基本参数进行了配置,并添加了composer。在日志中启动之后,我可以看到所有内容都已成功完成(composer update),但当我检查目录时,似乎所有内容都已删除(如供应商文件夹等) 我在哪里犯的错误? 谢谢Github操作将在部署后删除所有更改,github,github-actions,Github,Github Actions,我决定在Github上尝试操作,结果卡住了, 我使用基本参数进行了配置,并添加了composer。在日志中启动之后,我可以看到所有内容都已成功完成(composer update),但当我检查目录时,似乎所有内容都已删除(如供应商文件夹等) 我在哪里犯的错误? 谢谢 name: Deploy on: push: tags: - '*' jobs: build: runs-on: ubuntu-latest steps: - uses:
name: Deploy
on:
push:
tags:
- '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Deploy files
id: deploy
uses: Pendect/action-rsyncer@v1.1.0
env:
DEPLOY_KEY: ${{secrets.DEPLOY_KEY}}
with:
flags: '-avzr --delete'
options: '--exclude="dir/uploads" --exclude="dir/cache" --exclude="dir/uploads" --exclude=".idea" --exclude=".git" --exclude .gitignore'
- name: Install dependencies
uses: php-actions/composer@v5
with:
dev: no
args: --profile --ignore-platform-reqs
- name: Run scripts inside the child theme
uses: actions/setup-node@v1
with:
node-version: 12.0
- run: npm i
working-directory: dir/themes/hello-child
- run: npm run build --if-present
working-directory: dir/themes/hello-child
- name: Display status from deploy
run: echo "${{ steps.deploy.outputs.status }}"