Merge pull request #1899 from kubosho/monorepo-again #59
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Upload og:image to S3 | |
on: | |
push: | |
branches: [main] | |
paths: | |
- client/public/assets/images/og/** | |
env: | |
AWS_BUCKET_NAME: ${{ secrets.AWS_BUCKET_NAME }} | |
permissions: | |
id-token: write | |
contents: read | |
jobs: | |
upload: | |
defaults: | |
run: | |
working-directory: client | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up AWS Credentials | |
uses: aws-actions/configure-aws-credentials@v4 | |
with: | |
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }} | |
aws-region: ${{ secrets.AWS_REGION }} | |
- name: Sync og:image folder to S3 | |
run: | | |
aws s3 sync public/assets/images/og s3://${{ env.AWS_BUCKET_NAME }}/images/og --delete --exact-timestamps |