recreate normal index.html #91
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy to GitHub Pages | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
# for future expansion, for now only node 16 is supported | |
node: [22.x] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Node, install dependencies, and cache node modules, build dist artifacts | |
uses: ./.github/build-artifacts | |
with: | |
node-version: ${{ matrix.node }} | |
deploy: | |
needs: build | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
# for future expansion, for now only node 16 is supported | |
node: [22.x] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Get the build | |
uses: ./.github/build-artifacts | |
with: | |
node-version: ${{ matrix.node }} | |
- name: Deploy to GitHub Pages | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages # The branch the action should deploy to. | |
folder: dist/samples/browser # The folder the action should deploy. |