-
-
Notifications
You must be signed in to change notification settings - Fork 0
27 lines (22 loc) · 708 Bytes
/
Copy pathsync-to-drive.yml
File metadata and controls
27 lines (22 loc) · 708 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
name: Sync to Google Drive
# Google Drive sync is a release step -- it runs when a release is cut,
# not on every push to main.
on:
workflow_dispatch:
release:
types: [created]
jobs:
sync:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install rclone
run: curl https://rclone.org/install.sh | sudo bash
- name: Configure rclone
env:
RCLONE_CONF: ${{ secrets.RCLONE_CONF }}
run: |
mkdir -p ~/.config/rclone
printf '%s' "$RCLONE_CONF" > ~/.config/rclone/rclone.conf
- name: Sync Cultures
run: rclone sync . "gdrive:KAI/Cultures/" --transfers=4 --delete-after --exclude ".github/**"