Skip to content

Commit 4b93775

Browse files
committed
fix: use a custom branch for preview deployment
1 parent 71ac39b commit 4b93775

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/deploy-branch.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ jobs:
4545
user_name: "STAC Browser CI"
4646
user_email: [email protected]
4747
destination_dir: preview/${{ steps.branch-name.outputs.branch_name }}
48+
publish_branch: gh-pages-preview
4849

4950
- name: Comment PR
5051
if: github.event_name == 'pull_request'

scripts/build-with-semantic.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ echo " npx serve dist/"
3535
echo ""
3636
echo "To deploy to GitHub Pages:"
3737
echo " 1. Set the SEMANTIC_SEARCH_API_URL secret in your repo settings"
38-
echo " 2. Push this branch to GitHub"
39-
echo " 3. The GitHub Action will deploy to:"
38+
echo " 2. Configure GitHub Pages to use 'gh-pages-preview' branch"
39+
echo " 3. Push this branch to GitHub"
40+
echo " 4. The GitHub Action will deploy to:"
4041
echo " https://YOUR_USERNAME.github.io/YOUR_REPO/preview/$BRANCH_NAME/"

0 commit comments

Comments
 (0)