File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 86
86
${{ runner.os }}-nextjs-${{ hashFiles('**/pnpm-lock.yaml') }}-
87
87
- name : Install dependencies
88
88
run : ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }}
89
+ - name : Set base path
90
+ id : set-base-path
91
+ run : |
92
+ if [ -n "${{ vars.SITE_BASE_PATH }}" ]; then
93
+ echo "base_path=${{ vars.SITE_BASE_PATH }}" >> $GITHUB_OUTPUT
94
+ else
95
+ echo "base_path=/${{ github.event.repository.name }}" >> $GITHUB_OUTPUT
96
+ fi
89
97
- name : Build with Next.js
90
98
env :
91
- PAGES_BASE_PATH : /convex.world
99
+ PAGES_BASE_PATH : ${{ steps.set-base-path.outputs.base_path }}
92
100
run : ${{ steps.detect-package-manager.outputs.runner }} next build
93
101
- name : Upload artifact
94
102
uses : actions/upload-pages-artifact@v3
You can’t perform that action at this time.
0 commit comments