File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 5959 run : |
6060 cd build/docs/gatsby
6161 npm install
62- cp ../../../docs/config/gatsby-config.js gatsby-config-preview.js
63- sed -i 's|pathPrefix: "/execution-apis"|pathPrefix: "/execution-apis/preview/PR${{ github.event.number }}"|g' gatsby-config-preview.js
64- npx gatsby build --prefix-paths --config gatsby-config-preview.js
62+ # Backup original config
63+ cp gatsby-config.js gatsby-config-original.js
64+ # Modify config for preview
65+ sed -i 's|pathPrefix: "/execution-apis"|pathPrefix: "/execution-apis/preview/PR${{ github.event.number }}"|g' gatsby-config.js
66+ # Build with modified config
67+ npx gatsby build --prefix-paths
68+ # Restore original config
69+ cp gatsby-config-original.js gatsby-config.js
6570 - name : Cache docs build output
6671 uses : actions/cache@v4
6772 with :
You can’t perform that action at this time.
0 commit comments