Skip to content

PM-1376 - Add workflow to publish lists to S3 bucket #12

PM-1376 - Add workflow to publish lists to S3 bucket

PM-1376 - Add workflow to publish lists to S3 bucket #12

Workflow file for this run

name: Publish network lists
on:
push:
branches: [PM-1376-add-worklow-to-publish-the-seed-list, main]
jobs:
publishing:
runs-on: minafoundation-default-runners
steps:
- name: 📥 Checkout
uses: actions/[email protected]
- name: ⚙️ Set environment variables
run: |
echo "AWS_REGION=$AWS_REGION" >> $GITHUB_ENV
echo "DEPLOYMENT_ROLE_NAME=$DEPLOYMENT_ROLE_NAME" >> $GITHUB_ENV
echo "AWS_ROLE_DURATION_SECONDS=$AWS_ROLE_DURATION_SECONDS" >> $GITHUB_ENV
- name: 🔑 Assume role
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: ${{ env.AWS_REGION }}
role-to-assume: ${{ env.DEPLOYMENT_ROLE_NAME }}
role-session-name: ${{ env.DEPLOYMENT_ROLE_NAME }}
role-duration-seconds: ${{ env.AWS_ROLE_DURATION_SECONDS }}
- name: 📰 Publish network lists
run: ./scripts/publish.sh