diff --git a/modules/repository/repository.tf b/modules/repository/repository.tf index d3f49ed..039d29b 100644 --- a/modules/repository/repository.tf +++ b/modules/repository/repository.tf @@ -29,11 +29,7 @@ resource "github_repository" "this" { dynamic "pages" { for_each = var.pages == true ? [{}] : [] content { - build_type = "legacy" - - source { - branch = "gh-pages" - } + build_type = "workflow" } } @@ -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 -}