Skip to content

Commit

Permalink
Use rclone for sync
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewp committed Dec 14, 2024
1 parent ff6f092 commit 1ca2564
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 14 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,18 @@ jobs:
with:
node-version: 22

- name: Setup Rclone
uses: AnimMouse/setup-rclone@v1
with:
rclone_config: ${{ secrets.RCLONE_CONFIG }}

- name: Install dependencies
run: npm ci

- name: Build Site
run: npm run --workspace=docs build

- name: Sync Bucket
uses: jakejarvis/s3-sync-action@master
with:
args: --delete
env:
AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
DEST_DIR: '/'
SOURCE_DIR: 'docs/_site' # optional: defaults to entire repository
- run: rclone sync docs/_site remote:thisrobot.life

- name: Invalidate CDN
uses: chetan/invalidate-cloudfront-action@master
Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1ca2564

Please sign in to comment.