From 1830942a88e45432d98f617853971618aefee55e Mon Sep 17 00:00:00 2001 From: Eric McCarthy Date: Mon, 23 Sep 2024 03:49:37 +0000 Subject: [PATCH] ci: debug outputs from cf deploy action --- .github/workflows/cd.yaml | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/.github/workflows/cd.yaml b/.github/workflows/cd.yaml index 20f7b26..2150505 100644 --- a/.github/workflows/cd.yaml +++ b/.github/workflows/cd.yaml @@ -26,7 +26,7 @@ jobs: BranchName=${{ github.ref_name }}, LimulusDotNetZoneId=${{ secrets.LIMULUS_DOT_NET_ZONE_ID }}, LimulusDotNetCertificateArn=${{ secrets.LIMULUS_DOT_NET_CERTIFICATE_ARN }} - - run: echo "::set-output name=StaticSiteBucketName::$(aws cloudformation describe-stacks --stack-name limulus-dot-net-${{ github.ref_name }} --query 'Stacks[0].Outputs[?OutputKey==`StaticSiteBucketName`].OutputValue' --output text)" + - run: cat $GITHUB_OUTPUT build: runs-on: ubuntu-latest @@ -59,13 +59,12 @@ jobs: id-token: write steps: - run: echo "StaticSiteBucketName ${{ needs.infra.outputs.StaticSiteBucketName.value }}" - - # - uses: actions/download-artifact@v4 - # with: - # name: dist-www - # path: www - # - uses: aws-actions/configure-aws-credentials@v4 - # with: - # role-to-assume: arn:aws:iam::865116139480:role/github-actions-limulus-penumbra - # aws-region: us-west-2 - # - run: aws s3 sync www s3://limulus-net-penumbra --delete --cache-control max-age=60,public + - uses: actions/download-artifact@v4 + with: + name: dist-www + path: www + - uses: aws-actions/configure-aws-credentials@v4 + with: + role-to-assume: arn:aws:iam::865116139480:role/github-actions-limulus-penumbra + aws-region: us-west-2 + - run: aws s3 sync www s3://${{ needs.infra.outputs.StaticSiteBucketName.value }} --delete --cache-control max-age=60,public