Trying to deploy on build

This commit is contained in:
hydroflame 2022-10-22 00:17:58 -04:00 committed by GitHub
parent 82caadfac6
commit 7f5d887506
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -14,6 +14,15 @@ on:
default: "true" default: "true"
required: true required: true
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: true
jobs: jobs:
build: build:
name: Build name: Build
@ -60,3 +69,28 @@ jobs:
name: markdown name: markdown
path: markdown/ path: markdown/
expire-on: never 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