Skip to content

chore: update hero assets #3

chore: update hero assets

chore: update hero assets #3

name: sync static bucket
on:
push:
branches:
- main
workflow_dispatch:
concurrency:
group: sync-fluxer-static
cancel-in-progress: true
jobs:
push:
runs-on: ubuntu-latest
timeout-minutes: 30
permissions:
contents: read
env:
RCLONE_CONFIG_OVH_TYPE: s3
RCLONE_CONFIG_OVH_PROVIDER: Other
RCLONE_CONFIG_OVH_REGION: us-east-1
RCLONE_CONFIG_OVH_ENDPOINT: https://s3.us-east-va.io.cloud.ovh.us
RCLONE_CONFIG_OVH_ACL: private
RCLONE_CONFIG_OVH_ACCESS_KEY_ID: ${{ secrets.OVH_S3_ACCESS_KEY_ID }}
RCLONE_CONFIG_OVH_SECRET_ACCESS_KEY: ${{ secrets.OVH_S3_SECRET_ACCESS_KEY }}
RCLONE_BUCKET: fluxer-static
steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- name: Install rclone
run: |
sudo apt-get update
sudo apt-get install --yes rclone
- name: Sync repository to OVH bucket
run: |
rclone sync . "ovh:${RCLONE_BUCKET}" \
--create-empty-src-dirs \
--exclude ".git/**" \
--exclude ".github/**" \
--exclude "assets/**"