format+spelling #26
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |