From 97d9cf20ae0ad6be5648333a56e780b834dea7c8 Mon Sep 17 00:00:00 2001 From: Lucas Cantor Date: Mon, 15 Apr 2024 19:56:27 -0700 Subject: [PATCH] troubleshoot (#72) --- .github/workflows/build_and_deploy.yml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build_and_deploy.yml b/.github/workflows/build_and_deploy.yml index 1f47d63..aa1081e 100644 --- a/.github/workflows/build_and_deploy.yml +++ b/.github/workflows/build_and_deploy.yml @@ -8,6 +8,7 @@ on: # Allows you to run this workflow manually from the Actions tab workflow_dispatch: +# Set environment variables env: AWS_ROLE_ARN: 'arn:aws:iam::042672036044:role/github-actions-sts-assumption-role' AWS_S3_BUCKET_NAME: 'blog.lucascantor.com' @@ -18,11 +19,6 @@ permissions: contents: read # Required for actions/checkout id-token: write # Required for requesting the JWT -# Allow one concurrent deployment -concurrency: - group: 'pages' - cancel-in-progress: true - jobs: # Build and deploy job build_and_deploy: @@ -36,7 +32,7 @@ jobs: node-version: 'node' check-latest: true - - name: Install dependencies & build + - name: Install dependencies & build site run: | npm install npm run build @@ -47,6 +43,6 @@ jobs: role-to-assume: ${{ env.AWS_ROLE_ARN }} aws-region: ${{ env.AWS_REGION }} - - name: Deploy to S3 + - name: Deploy site to S3 run: | aws s3 sync ./_site s3://${{ env.AWS_S3_BUCKET_NAME }}/ --delete