Skip to content

Commit 1ca2564

Browse files
committed
Use rclone for sync
1 parent ff6f092 commit 1ca2564

File tree

2 files changed

+10
-14
lines changed

2 files changed

+10
-14
lines changed

.github/workflows/site.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,22 +18,18 @@ jobs:
1818
with:
1919
node-version: 22
2020

21+
- name: Setup Rclone
22+
uses: AnimMouse/setup-rclone@v1
23+
with:
24+
rclone_config: ${{ secrets.RCLONE_CONFIG }}
25+
2126
- name: Install dependencies
2227
run: npm ci
2328

2429
- name: Build Site
2530
run: npm run --workspace=docs build
2631

27-
- name: Sync Bucket
28-
uses: jakejarvis/s3-sync-action@master
29-
with:
30-
args: --delete
31-
env:
32-
AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }}
33-
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
34-
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
35-
DEST_DIR: '/'
36-
SOURCE_DIR: 'docs/_site' # optional: defaults to entire repository
32+
- run: rclone sync docs/_site remote:thisrobot.life
3733

3834
- name: Invalidate CDN
3935
uses: chetan/invalidate-cloudfront-action@master

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)