diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3f4c68ec8f3d..ec4937971920 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -49,14 +49,3 @@ jobs: run: | cd data python -u deploy.py - - name: Sync static files - # https://superuser.com/questions/280425/getting-robocopy-to-return-a-proper-exit-code - run: | - robocopy /job:RSYNC-STATIC-FILES || [ $? -lt 8 ] - - name: Commit changes of static files - uses: EndBug/add-and-commit@v9 - with: - cwd: data/gh-pages - default_author: github_actions - message: 'Sync static files' - fetch: false diff --git a/.github/workflows/sync-static-files.yml b/.github/workflows/sync-static-files.yml index 85fef9d41509..b97f3c5a2837 100644 --- a/.github/workflows/sync-static-files.yml +++ b/.github/workflows/sync-static-files.yml @@ -5,6 +5,11 @@ defaults: shell: bash on: + push: + branches: + - main + paths-ignore: + - 'data/**' workflow_dispatch: concurrency: sync-static-files