fix(build): ensure .gitignore is included in temp site
All checks were successful
Build and Deploy Static Site / build (push) Successful in 58s
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:
parent
1434a3b552
commit
0b0f8bb3b2
2 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue