Skip to content

Commit 725063b

Browse files
committed
Support a main branch Antora UI preview build
1 parent fc7dfe5 commit 725063b

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/deploy-bundle-preview.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: Deploy Bundle Preview
22

33
on:
4+
push:
5+
branches:
6+
- 'main'
47
pull_request:
58
branches:
69
- '*'
@@ -30,7 +33,7 @@ jobs:
3033
shell: bash
3134
run: |
3235
# transform branch names in form of `refs/heads/main` to `main`
33-
draft_branch=$(basename ${{ github.event.pull_request.head.ref }})
36+
draft_branch=$(basename ${{ github.event.pull_request.head.ref || github.event.ref }})
3437
echo "draft_branch=$draft_branch" >> $GITHUB_OUTPUT
3538
id: extract_branch
3639

README.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ ifdef::env-github[]
1818
endif::[]
1919
// Project URLs:
2020
:url-project: https://github.com/riptano/docs-ui
21-
:url-preview: https://riptano.github.io/datastax-docs-site/main
21+
:url-preview: https://riptano.github.io/docs-ui/main
2222
// :url-ci-pipelines: {url-project}/pipelines
2323
// :img-ci-status: {url-project}/badges/master/pipeline.svg
2424
:url-docs-home: https://github.com/riptano/docs-home

0 commit comments

Comments
 (0)