Skip to content

Commit 39905f5

Browse files
committed
fix(ci): hardcode preview site domain fragment
using the repo name, which is itself a domain name, does not work
1 parent be2f084 commit 39905f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/site-preview.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
- name: Deploy Preview to Netlify
3333
run: |
3434
netlify deploy \
35-
--alias="${GITHUB_REPOSITORY#*/}-${{ github.event.number }}" \
35+
--alias="compiler-docs-${{ github.event.number }}" \
3636
--auth=${{ secrets.NETLIFY_AUTH_TOKEN }} \
3737
--dir="_site" \
3838
--site=${{ vars.NETLIFY_PREVIEW_APP_SITE_ID }}
@@ -56,5 +56,5 @@ jobs:
5656
issue_number: context.issue.number,
5757
owner: context.repo.owner,
5858
repo: context.repo.repo,
59-
body: `Preview url: https://${context.repo.repo}-${{ github.event.number }}--${hostnameSuffix}`,
59+
body: `Preview url: https://compiler-docs-${{ github.event.number }}--${hostnameSuffix}`,
6060
})

0 commit comments

Comments
 (0)