mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-18 13:43:49 +01:00
41451280ab
`npm run build` now generates a .app folder with the minimal run files `npm run electron` now uses the .app contents as a base deploy-dev.yml should upload just the .app folder after building (not tested yet)
36 lines
701 B
YAML
36 lines
701 B
YAML
name: "Deploy new dev build"
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
pages: write
|
|
id-token: write
|
|
|
|
concurrency:
|
|
group: "pages"
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
deploy:
|
|
environment:
|
|
name: github-pages
|
|
url: ${{ steps.deployment.outputs.page_url }}
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 0
|
|
- uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 16
|
|
- run: npm ci
|
|
- run: npm run build
|
|
- uses: actions/upload-pages-artifact@v1
|
|
with:
|
|
path: ".app"
|
|
- name: Deploy to gh pages
|
|
id: deployment
|
|
uses: actions/deploy-pages@v1
|