From 201a3c14cfc25d606a150865f281c3a2445b6e38 Mon Sep 17 00:00:00 2001 From: James Ramirez Date: Fri, 18 Jul 2025 18:16:11 +0100 Subject: [PATCH 1/2] feat: switch repos using GitHub Pages to workflow based deploys Signed-off-by: James Ramirez --- modules/repository/repository.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/repository/repository.tf b/modules/repository/repository.tf index d3f49ed..a271f72 100644 --- a/modules/repository/repository.tf +++ b/modules/repository/repository.tf @@ -29,7 +29,7 @@ resource "github_repository" "this" { dynamic "pages" { for_each = var.pages == true ? [{}] : [] content { - build_type = "legacy" + build_type = "workflow" source { branch = "gh-pages" From 4fdcae25cc6bd86bf848cb1f2e10838107d56cb4 Mon Sep 17 00:00:00 2001 From: James Ramirez Date: Fri, 18 Jul 2025 18:33:13 +0100 Subject: [PATCH 2/2] feat: switch repos using GitHub Pages to workflow based deploys Signed-off-by: James Ramirez --- modules/repository/repository.tf | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/modules/repository/repository.tf b/modules/repository/repository.tf index a271f72..039d29b 100644 --- a/modules/repository/repository.tf +++ b/modules/repository/repository.tf @@ -30,10 +30,6 @@ resource "github_repository" "this" { for_each = var.pages == true ? [{}] : [] content { build_type = "workflow" - - source { - branch = "gh-pages" - } } } @@ -61,9 +57,3 @@ resource "github_branch_protection" "main" { require_signed_commits = true } - -resource "github_branch" "pages" { - for_each = var.pages == true ? { "gh-pages" = "v" } : {} - repository = github_repository.this.name - branch = each.key -}