From d4f616ad7670dcb17f498d0c9a8d0dd8ade61b75 Mon Sep 17 00:00:00 2001 From: "Jeremy T. Bouse" Date: Thu, 5 Dec 2024 23:56:38 -0500 Subject: [PATCH] Update to fix deployment --- .github/workflows/release.yml | 17 ++++++++++------- data/announcements/en.yaml | 4 ++-- terraform/backend.tf | 6 ++++-- 3 files changed, 16 insertions(+), 11 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 794ef1d..7b14fc1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -147,10 +147,13 @@ jobs: env: HUGO_ENV: production + HUGO_CACHEDIR: /tmp/hugo_cache steps: - name: Checkout uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: Setup node uses: actions/setup-node@v4 @@ -162,15 +165,15 @@ jobs: - name: Setup Hugo uses: peaceiris/actions-hugo@v3 with: - hugo-version: '0.124.1' + hugo-version: '0.136.5' extended: true - # - uses: actions/cache@v4 - # with: - # path: ~/.cache/hugo_cache # <-- with hugo version v0.116.0 and above - # key: ${{ runner.os }}-hugomod-${{ hashFiles('**/go.sum') }} - # restore-keys: | - # ${{ runner.os }}-hugomod- + - uses: actions/cache@v4 + with: + path: ${{ env.HUGO_CACHEDIR }} + key: ${{ runner.os }}-hugomod-${{ hashFiles('**/go.sum') }} + restore-keys: | + ${{ runner.os }}-hugomod- - name: Hugo Build run: hugo --gc --enableGitInfo --minify --baseURL https://${{ needs.deploy-infra.outputs.baseurl }}/ diff --git a/data/announcements/en.yaml b/data/announcements/en.yaml index 5a7c2b5..f3ffc59 100644 --- a/data/announcements/en.yaml +++ b/data/announcements/en.yaml @@ -1,6 +1,6 @@ # hamcation: -# title: Hope to see you @ Orlando HamCation - Feb 9-11, 2024 -# url: blog/hamcation-2024 +# title: Hope to see you @ Orlando HamCation - Feb 7-9, 2025 +# url: blog/hamcation-2025 # weight: 1 # msc-cruise: diff --git a/terraform/backend.tf b/terraform/backend.tf index 8b54123..6c2fe0b 100644 --- a/terraform/backend.tf +++ b/terraform/backend.tf @@ -1,5 +1,5 @@ terraform { - required_version = ">= 0.12.2" + required_version = ">= 1.0.0" backend "s3" { region = "us-east-1" @@ -7,7 +7,9 @@ terraform { key = "kq4afy-hugo-site/terraform.tfstate" dynamodb_table = "ugns-use1-terraform-state-lock" profile = "" - role_arn = "arn:aws:iam::465691465286:role/GitHubActionsExecution" encrypt = "true" + assume_role = { + role_arn = "arn:aws:iam::465691465286:role/GitHubActionsExecution" + } } }