Skip to content

Commit

Permalink
troubleshoot (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucascantor authored Apr 16, 2024
1 parent 1f57059 commit 97d9cf2
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/build_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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:
Expand All @@ -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
Expand All @@ -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

0 comments on commit 97d9cf2

Please sign in to comment.