Skip to content

Commit a737252

Browse files
committed
Chore: update build command and preview URL in GitHub Actions workflow
Signed-off-by: hortison <[email protected]>
1 parent 02387a6 commit a737252

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/static.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
- name: Install dependencies
4141
run: make setup
4242
- name: Build Academy
43-
run: make build-preview
43+
run: make build-preview $BASEURL=https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}/pr-preview-${{ github.event.pull_request.number || github.run_id }}
4444
- name: Upload artifact
4545
uses: actions/upload-pages-artifact@v3
4646
with:
@@ -58,7 +58,7 @@ jobs:
5858
🚀 **Preview deployment for PR #${{ github.event.pull_request.number }}**
5959
6060
📖 Preview: ${{ steps.deployment.outputs.page_url }}
61-
🌐 Alternative URL: https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}/
61+
🌐 PR URL: https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}/pr-preview-${{ github.event.pull_request.number || github.run_id }}
6262
6363
> Environment: `pr-preview-${{ github.event.pull_request.number }}`
6464

0 commit comments

Comments
 (0)