release #10
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: release | |
| on: workflow_dispatch | |
| env: | |
| AWS_REGION : "us-east-1" | |
| permissions: | |
| id-token: write # This is required for requesting the AWS JWT | |
| contents: read # This is required for actions/checkout | |
| jobs: | |
| release: | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Configure AWS credentials | |
| uses: aws-actions/configure-aws-credentials@v1.7.0 | |
| with: | |
| role-to-assume: arn:aws:iam::310361226925:role/s3-cdrf.co-deployer | |
| role-session-name: GitHub_to_AWS_via_FederatedOIDC | |
| aws-region: ${{ env.AWS_REGION }} | |
| - name: Test AWS credentials with Sts GetCallerIdentity | |
| run: | | |
| aws sts get-caller-identity | |
| - name: Set up Python 3.10 | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.10' | |
| - name: Install dependencies | |
| run: | | |
| pip install --upgrade pip | |
| pip install -r requirements.txt | |
| pip install s3cmd | |
| - name: Build | |
| run: fab build | |
| - name: Deploy | |
| env: | |
| AWS_BUCKET_NAME: ${{ secrets.AWS_BUCKET_NAME }} | |
| run: fab deploy |