From 18a70f9230b23aea634180fb61bab050b3f82b61 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jo=C3=A3o=20Magalh=C3=A3es?= <joamag@gmail.com>
Date: Mon, 31 Oct 2022 17:50:12 +0000
Subject: [PATCH] feat: new static copy of values

---
 .gitlab-ci.yml                       | 9 +++++----
 examples/web/static/_headers         | 3 +++
 examples/web/{ => static}/robots.txt | 0
 3 files changed, 8 insertions(+), 4 deletions(-)
 create mode 100644 examples/web/static/_headers
 rename examples/web/{ => static}/robots.txt (100%)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index e68b8a03..28d50c75 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -55,6 +55,7 @@ deploy-netlify-preview:
   stage: deploy
   script:
     - cd examples/web/dist
+    - cp -rp ../static/* .
     - npm_config_yes=true npx --package=netlify-cli netlify deploy --dir=.
   dependencies:
     - build-wasm
@@ -65,7 +66,7 @@ deploy-netlify-prod:
   stage: deploy
   script:
     - cd examples/web/dist
-    - cp ../robots.txt .
+    - cp -rp ../static/* .
     - npm_config_yes=true npx --package=netlify-cli netlify deploy --dir=. --prod
   dependencies:
     - build-wasm
@@ -76,7 +77,7 @@ deploy-cloudfare-master:
   stage: deploy
   script:
     - cd examples/web/dist
-    - cp ../robots.txt .
+    - cp -rp ../static/* .
     - npm_config_yes=true npx wrangler pages publish . --project-name=boytacean --branch master
   dependencies:
     - build-wasm
@@ -87,7 +88,7 @@ deploy-cloudfare-stable:
   stage: deploy
   script:
     - cd examples/web/dist
-    - cp ../robots.txt .
+    - cp -rp ../static/* .
     - npm_config_yes=true npx wrangler pages publish . --project-name=boytacean --branch stable
   dependencies:
     - build-wasm
@@ -98,7 +99,7 @@ deploy-cloudfare-prod:
   stage: deploy
   script:
     - cd examples/web/dist
-    - cp ../robots.txt .
+    - cp -rp ../static/* .
     - npm_config_yes=true npx wrangler pages publish . --project-name=boytacean --branch prod
   dependencies:
     - build-wasm
diff --git a/examples/web/static/_headers b/examples/web/static/_headers
new file mode 100644
index 00000000..7d54b8fc
--- /dev/null
+++ b/examples/web/static/_headers
@@ -0,0 +1,3 @@
+
+/*
+  X-Robots-Tag: all
diff --git a/examples/web/robots.txt b/examples/web/static/robots.txt
similarity index 100%
rename from examples/web/robots.txt
rename to examples/web/static/robots.txt
-- 
GitLab