mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-04 17:38:10 +00:00
Don't let netlify cache the build SHA (not sure if this works)
This commit is contained in:
1 parent
87ba15776c
commit
a0c2a72cad
1 file changed
+6
-6
+6
-6
@@ -3,12 +3,6 @@
|
||||
|
||||
set -euxo pipefail
|
||||
|
||||
# --ignore-engines: https://stackoverflow.com/a/59615348
|
||||
yarn build-fakeyou --verbose --ignore-optional --ignore-engines
|
||||
|
||||
mkdir fakeyou
|
||||
mv packages/fakeyou/build/ fakeyou/build/
|
||||
|
||||
# Add the GIT SHA to the build
|
||||
# COMMIT_REF is defined by Netlify to be the commit SHA
|
||||
# We want a short 8 character reference.
|
||||
@@ -18,6 +12,12 @@ find . -type f -exec sed -i "s/CURRENT_STORYTELLER_VERSION/${SHORT_SHA}/g" {} +
|
||||
# The above command won't work with Mac's version of find/sed. The following is a Mac-friendly version:
|
||||
# find . -type f -exec sed -i '' -e "s/CURRENT_STORYTELLER_VERSION/${SHORT_SHA}/g" {} +
|
||||
|
||||
# --ignore-engines: https://stackoverflow.com/a/59615348
|
||||
yarn build-fakeyou --verbose --ignore-optional --ignore-engines
|
||||
|
||||
mkdir fakeyou
|
||||
mv packages/fakeyou/build/ fakeyou/build/
|
||||
|
||||
echo "Copying redirects configuration to Netlify build dir..."
|
||||
cp _redirects fakeyou/build/
|
||||
|
||||
Reference in new issue
Block a user