Skip to content

format+spelling

format+spelling #26

Workflow file for this run

name: terraform deploy
on:
push:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-region: "us-east-1"
aws-access-key-id: ${{ secrets.access_key }}
aws-secret-access-key: ${{ secrets.secret_key}}
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: "0.103.1"
- name: Setup Terraform
uses: hashicorp/setup-terraform@v2
with:
terraform_version: 1.2.9
- name: Hugo build static site
run: hugo -s website/hugo/vmorganpWebsite --minify
- name: Deploy
run: |
cd infrastructure
terraform init
terraform apply -auto-approve