Skip to content

Commit

Permalink
Create synchronization.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
0x2b3bfa0 authored Aug 18, 2023
1 parent 603138f commit ba41147
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/synchronization.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
on:
push:
# branches: [main]

jobs:
synchronize:
concurrency: s3
environment: aws-s3
permissions:
contents: read
id-token: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: aws-actions/configure-aws-credentials@v2
with:
aws-region: us-east-1
role-to-assume: arn:aws:iam::927162227090:role/library-s3
role-duration-seconds: 43200 # 12 hours (maximum)
- run: rclone copy . :s3,env_auth=true:library-s3

0 comments on commit ba41147

Please sign in to comment.