Skip to content

Commit

Permalink
fix(ci): hardcode preview site domain fragment
Browse files Browse the repository at this point in the history
using the repo name, which is itself a domain name, does not work
  • Loading branch information
thekaveman committed Dec 17, 2024
1 parent be2f084 commit 39905f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/site-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
- name: Deploy Preview to Netlify
run: |
netlify deploy \
--alias="${GITHUB_REPOSITORY#*/}-${{ github.event.number }}" \
--alias="compiler-docs-${{ github.event.number }}" \
--auth=${{ secrets.NETLIFY_AUTH_TOKEN }} \
--dir="_site" \
--site=${{ vars.NETLIFY_PREVIEW_APP_SITE_ID }}
Expand All @@ -56,5 +56,5 @@ jobs:
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: `Preview url: https://${context.repo.repo}-${{ github.event.number }}--${hostnameSuffix}`,
body: `Preview url: https://compiler-docs-${{ github.event.number }}--${hostnameSuffix}`,
})

0 comments on commit 39905f5

Please sign in to comment.