File tree Expand file tree Collapse file tree 5 files changed +5
-5
lines changed Expand file tree Collapse file tree 5 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 3232 run : make install
3333
3434 - name : Build the website
35- run : make build
35+ run : make build MODE=production
3636
3737 - name : Set up SSH key
3838 uses :
webfactory/[email protected]
Original file line number Diff line number Diff line change 3939
4040 - name : Build the website
4141 run :
42- make build PREVIEW=true
42+ make build MODE=preview
4343 SITE_URL="https://${BRANCH_NAME}.ep-preview.click"
4444
4545 - name : Set up SSH key
Original file line number Diff line number Diff line change 2020 commands :
2121 - npm install -g pnpm@latest-10
2222 - make install
23- - make build PREVIEW=true SITE_URL=$READTHEDOCS_CANONICAL_URL
23+ - make build MODE=preview SITE_URL=$READTHEDOCS_CANONICAL_URL
2424 - mkdir -p $READTHEDOCS_OUTPUT/html
2525 - cd dist && cp -r * $READTHEDOCS_OUTPUT/html
Original file line number Diff line number Diff line change 4343 pnpm run astro check
4444
4545build :
46- pnpm build
46+ pnpm run astro build --mode $( MODE )
4747
4848preview : RELEASES_DIR = $(VPS_PREVIEW_PATH ) /$(SAFE_BRANCH ) /releases
4949preview : TARGET = $(RELEASES_DIR ) /$(TIMESTAMP )
Original file line number Diff line number Diff line change @@ -14,6 +14,6 @@ Allow: /
1414Sitemap: https://ep2025.europython.eu/sitemap-index.xml
1515` ;
1616
17- const isPreview = String ( import . meta. env . PREVIEW ) . toLowerCase ( ) === "true ";
17+ const isPreview = import . meta. env . MODE == "preview ";
1818export const GET : APIRoute = ( ) =>
1919 new Response ( isPreview ? previewRobots : prodRobots ) ;
You can’t perform that action at this time.
0 commit comments