Features/bdp 94 lof (#37) #23
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: Deploy Glue Scripts to AWS | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - develop | |
| - master | |
| permissions: | |
| id-token: write | |
| contents: read | |
| jobs: | |
| deploy-glue-scripts: | |
| runs-on: ubuntu-latest | |
| steps: | |
| # 1. Checkout repo | |
| - name: Checkout repository | |
| uses: actions/checkout@v3 | |
| # 2. Configure AWS credentials | |
| - name: Configure AWS credentials | |
| uses: aws-actions/configure-aws-credentials@v4 | |
| with: | |
| aws-region: "eu-north-1" | |
| role-to-assume: arn:aws:iam::982534349340:role/GitHubOIDCWorkflowRole | |
| # 3. Upload files to S3 | |
| - name: Upload ETL scripts to S3 | |
| run: aws s3 sync scripts/cloud/etl/ s3://bdp-glue-scripts --exclude "*" --include "*.py" | |