mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-19 12:45:45 +01:00
Trying to deploy on build
This commit is contained in:
parent
82caadfac6
commit
7f5d887506
34
.github/workflows/build.yml
vendored
34
.github/workflows/build.yml
vendored
@ -14,6 +14,15 @@ on:
|
||||
default: "true"
|
||||
required: true
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
pages: write
|
||||
id-token: write
|
||||
|
||||
concurrency:
|
||||
group: "pages"
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Build
|
||||
@ -60,3 +69,28 @@ jobs:
|
||||
name: markdown
|
||||
path: markdown/
|
||||
expire-on: never
|
||||
deploy:
|
||||
needs: build
|
||||
environment:
|
||||
name: github-pages
|
||||
url: ${{ steps.deployment.outputs.page_url }}
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
- name: Setup Pages
|
||||
uses: actions/configure-pages@v2
|
||||
- uses: actions/upload-artifact@v3
|
||||
if: ${{ github.event.inputs.buildApp == 'true' }}
|
||||
with:
|
||||
name: app
|
||||
path: |
|
||||
dist/main.bundle.js
|
||||
dist/main.bundle.js.map
|
||||
dist/vendor.bundle.js
|
||||
dist/vendor.bundle.js.map
|
||||
index.html
|
||||
expire-on: never
|
||||
- name: Deploy to GitHub Pages
|
||||
id: deployment
|
||||
uses: actions/deploy-pages@v1
|
||||
|
Loading…
Reference in New Issue
Block a user