add ci #1
This file contains hidden or 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 to S3 | |
| on: | |
| push: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| jobs: | |
| upload-to-s3: | |
| runs-on: ubuntu-latest | |
| env: | |
| S3_BUCKET_PATH: s3://cdn.explorium.ai/integrations/ | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Configure AWS credentials | |
| uses: aws-actions/configure-aws-credentials@v4 | |
| with: | |
| aws-region: us-east-1 | |
| role-to-assume: ${{ secrets.PROD_GITHUB_ROLE }} | |
| - name: Upload repository to S3 | |
| run: | | |
| aws s3 sync . ${{ env.S3_BUCKET_PATH }} \ | |
| --exclude ".git/*" \ | |
| --exclude ".github/*" \ | |
| --exclude ".idea/*" \ | |
| --delete |