fix(build): ensure .gitignore is included in temp site
All checks were successful
Build and Deploy Static Site / build (push) Successful in 58s

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.
This commit is contained in:
Kumi 2024-07-01 10:37:42 +02:00
parent 1434a3b552
commit 0b0f8bb3b2
Signed by: kumi
GPG key ID: ECBCC9082395383F
2 changed files with 2 additions and 0 deletions

View file

@ -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

View file

@ -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