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

时间:2021-05-16 16:50:10

标签: github github-actions

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

我哪里出错了? 谢谢

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

0 个答案:

没有答案