We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2044e20 commit 514d77fCopy full SHA for 514d77f
1 file changed
.github/workflows/deploy.yml
@@ -31,8 +31,17 @@ jobs:
31
- name: Install dependencies
32
run: npm ci
33
34
+ - name: Compute base href
35
+ id: base-href
36
+ run: |
37
+ if [ "${{ github.event.repository.name }}" = "${{ github.repository_owner }}.github.io" ]; then
38
+ echo "value=/" >> $GITHUB_OUTPUT
39
+ else
40
+ echo "value=/${{ github.event.repository.name }}/" >> $GITHUB_OUTPUT
41
+ fi
42
+
43
- name: Build
- run: npm run build
44
+ run: npm run build -- --base-href="${{ steps.base-href.outputs.value }}"
45
46
- name: Deploy
47
uses: JamesIves/github-pages-deploy-action@v4
0 commit comments