From 0b0f8bb3b2521eca25603bdbf9ae450b6f7c5933 Mon Sep 17 00:00:00 2001 From: Kumi Date: Mon, 1 Jul 2024 10:37:42 +0200 Subject: [PATCH] fix(build): ensure .gitignore is included in temp site Added copying of .gitignore to the temporary static site location in both development and production build scripts. This prevents unnecessary files from being included in the new orphan branches, ensuring a cleaner and more efficient build process. --- .forgejo/workflows/build-dev.yml | 1 + .forgejo/workflows/build.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/.forgejo/workflows/build-dev.yml b/.forgejo/workflows/build-dev.yml index 0daec0a..5d7ee68 100644 --- a/.forgejo/workflows/build-dev.yml +++ b/.forgejo/workflows/build-dev.yml @@ -30,6 +30,7 @@ jobs: # Move generated static site files to a temporary location mv build ../static_site_temp + cp .gitignore ../static_site_temp # Create a new orphan branch named 'pages-dev' git checkout --orphan pages-dev diff --git a/.forgejo/workflows/build.yml b/.forgejo/workflows/build.yml index aca70bc..3d1ba9c 100644 --- a/.forgejo/workflows/build.yml +++ b/.forgejo/workflows/build.yml @@ -30,6 +30,7 @@ jobs: # Move generated static site files to a temporary location mv build ../static_site_temp + cp .gitignore ../static_site_temp # Create a new orphan branch named 'pages' git checkout --orphan pages