Skip to content

Commit

Permalink
Configure aws region
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Gaunt committed Jan 10, 2022
1 parent 6335dde commit 1d2085c
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/publish.yml
Expand Up @@ -34,19 +34,21 @@ jobs:
- name: Install NPM Deps
run: npm install

# Configure AWS for genimgs and publish
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-west-1

# Build it
- name: Gen Images
run: genimgs
- name: Build
run: npm run build

# Deploy to AWS
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-west-1
- name: Publish to AWS
run: npx --package @gauntface/cli gauntface aws s3 deploy-static-site --directory="./public/" --bucket_name="www.gaunt.dev"
shell: bash

0 comments on commit 1d2085c

Please sign in to comment.