Skip to content

Commit 1a113ff

Browse files
committed
Configure guides Pages base path
1 parent 3774a89 commit 1a113ff

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ concurrency:
2323
jobs:
2424
build:
2525
name: Build guides
26+
permissions:
27+
contents: read
28+
pages: read
2629
runs-on: ubuntu-latest
2730
steps:
2831
- name: Checkout Remix
@@ -53,10 +56,15 @@ jobs:
5356
working-directory: remix
5457
run: echo "sha=$(git rev-parse HEAD)" >> "$GITHUB_OUTPUT"
5558

59+
- name: Configure GitHub Pages
60+
id: pages
61+
uses: actions/configure-pages@v6
62+
5663
- name: Prerender guides
5764
working-directory: remix
5865
env:
5966
GITHUB_SHA: ${{ steps.remix.outputs.sha }}
67+
REMIX_GUIDES_BASE_PATH: ${{ steps.pages.outputs.base_path }}
6068
run: pnpm --filter remix-guides run prerender
6169

6270
- name: Upload GitHub Pages artifact
@@ -75,9 +83,6 @@ jobs:
7583
url: ${{ steps.deployment.outputs.page_url }}
7684
runs-on: ubuntu-latest
7785
steps:
78-
- name: Configure GitHub Pages
79-
uses: actions/configure-pages@v5
80-
8186
- name: Deploy GitHub Pages
8287
id: deployment
8388
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)