File tree Expand file tree Collapse file tree 1 file changed +19
-14
lines changed Expand file tree Collapse file tree 1 file changed +19
-14
lines changed Original file line number Diff line number Diff line change @@ -95,21 +95,26 @@ jobs:
95
95
# ----- Copy Tina into <baseUrl>/admin -----
96
96
- name : Relocate Tina admin inside baseUrl
97
97
run : |
98
- set -euo pipefail
99
- BASE="${DOCS_BASEURL#/}" # strip leading /
100
- BASE="${BASE%/}" # strip trailing /
101
- if [[ -z "$BASE" ]]; then
102
- echo "Base URL is '/', nothing to move."
103
- exit 0
104
- fi
105
- SRC="./admin"
106
- DEST="./build/${BASE}/admin"
107
- echo "Copying $SRC → $DEST"
108
- mkdir -p "$DEST"
109
- cp -a "$SRC"/. "$DEST"/
110
- ls -R "$DEST" | head
98
+ set -euo pipefail
99
+ BASE="${DOCS_BASEURL#/}" # strip leading /
100
+ BASE="${BASE%/}" # strip trailing /
101
+ SRC="./public/admin" # <<— correct location from tinacms build
102
+ # If you still move it to static/cms-admin elsewhere, use that path instead
103
+ if [[ ! -d "$SRC" ]]; then
104
+ echo "Tina admin folder not found at $SRC"; exit 1;
105
+ fi
106
+ if [[ -z "$BASE" ]]; then
107
+ DEST="./build/admin"
108
+ else
109
+ DEST="./build/${BASE}/admin"
110
+ fi
111
+ echo "Copying $SRC → $DEST"
112
+ mkdir -p "$DEST"
113
+ cp -a "$SRC"/. "$DEST"/
114
+ ls -R "$DEST" | head
111
115
env :
112
- DOCS_BASEURL : ${{ secrets.DOCS_BASEURL }}
116
+ DOCS_BASEURL : ${{ secrets.DOCS_BASEURL }}
117
+
113
118
114
119
# ----- Publish to gh-pages -----
115
120
- name : Deploy to GitHub Pages
You can’t perform that action at this time.
0 commit comments