mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-05-03 22:37:06 +02:00
WORKFLOW: Allow enabling dev mode when deploying dev build (#2184)
This commit is contained in:
@@ -2,6 +2,12 @@ name: "Deploy new pages build"
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
enable_dev_mode:
|
||||||
|
description: Enable dev mode (enable dev menu, disable minification, etc.)
|
||||||
|
type: boolean
|
||||||
|
required: false
|
||||||
|
default: false
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
@@ -24,7 +30,14 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: 20
|
node-version: 20
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
- run: npm run build
|
- env:
|
||||||
|
ENABLE_DEV_MODE: ${{ github.event.inputs.enable_dev_mode }}
|
||||||
|
run: |
|
||||||
|
if [[ "$ENABLE_DEV_MODE" == 'true' ]]; then
|
||||||
|
npm run build:dev
|
||||||
|
else
|
||||||
|
npm run build
|
||||||
|
fi
|
||||||
- uses: actions/upload-pages-artifact@v3
|
- uses: actions/upload-pages-artifact@v3
|
||||||
with:
|
with:
|
||||||
path: ".app"
|
path: ".app"
|
||||||
|
|||||||
Reference in New Issue
Block a user