Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/github/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/elixir/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Github操作将在部署后删除所有更改_Github_Github Actions - Fatal编程技术网

Github操作将在部署后删除所有更改

Github操作将在部署后删除所有更改,github,github-actions,Github,Github Actions,我决定在Github上尝试操作,结果卡住了, 我使用基本参数进行了配置,并添加了composer。在日志中启动之后,我可以看到所有内容都已成功完成(composer update),但当我检查目录时,似乎所有内容都已删除(如供应商文件夹等) 我在哪里犯的错误? 谢谢 name: Deploy on: push: tags: - '*' jobs: build: runs-on: ubuntu-latest steps: - uses:

我决定在Github上尝试操作,结果卡住了, 我使用基本参数进行了配置,并添加了composer。在日志中启动之后,我可以看到所有内容都已成功完成(composer update),但当我检查目录时,似乎所有内容都已删除(如供应商文件夹等)

我在哪里犯的错误? 谢谢

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 }}"