diff --git a/.github/workflows/release-published.yml b/.github/workflows/release-published.yml index 1b8d66be..10cbf572 100644 --- a/.github/workflows/release-published.yml +++ b/.github/workflows/release-published.yml @@ -21,19 +21,17 @@ jobs: path: liquibase-neo4j repository: "liquibase/liquibase-neo4j" + - name: Configure AWS credentials + uses: aws-actions/configure-aws-credentials@v4 + with: + role-to-assume: ${{ secrets.AWS_PROD_GITHUB_OIDC_ROLE_ARN_BUILD_LOGIC }} + aws-region: us-east-1 + - name: Upload to s3 - env: - AWS_ACCESS_KEY_ID: ${{ secrets.LIQUIBASEORIGIN_ACCESS_KEY_ID }} - AWS_SECRET_ACCESS_KEY: ${{ secrets.LIQUIBASEORIGIN_SECRET_ACCESS_KEY }} - AWS_DEFAULT_REGION: us-east-1 # aws s3 sync syncs directories and S3 prefixes. run: | aws s3 sync liquibase-neo4j/src/main/resources/www.liquibase.org/xml/ns/neo4j/ s3://liquibaseorg-origin/xml/ns/neo4j/ --content-type application/octet-stream --only-show-errors - name: Index.htm file upload - env: - AWS_ACCESS_KEY_ID: ${{ secrets.LIQUIBASEORIGIN_ACCESS_KEY_ID }} - AWS_SECRET_ACCESS_KEY: ${{ secrets.LIQUIBASEORIGIN_SECRET_ACCESS_KEY }} - AWS_DEFAULT_REGION: us-east-1 # List all xsd and htm files in repository. Copy index.htm to temporary folder # Add links for all xsd files to index.htm file (except liquibase-neo4j-latest.xsd and index.htm) # Sync index.htm with the s3