Skip to content

Commit

Permalink
Update step and job to sync static files
Browse files Browse the repository at this point in the history
  • Loading branch information
m417z committed Jul 6, 2023
1 parent f2cbc80 commit d983ace
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
11 changes: 0 additions & 11 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 5 additions & 0 deletions .github/workflows/sync-static-files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ defaults:
shell: bash

on:
push:
branches:
- main
paths-ignore:
- 'data/**'
workflow_dispatch:

concurrency: sync-static-files
Expand Down

0 comments on commit d983ace

Please sign in to comment.