Skip to content

[projects/webgl] Add webgl project #85

[projects/webgl] Add webgl project

[projects/webgl] Add webgl project #85

Workflow file for this run

name: CI/CD
on:
pull_request:
branches:
- main
types:
- closed
- synchronize
- opened
workflow_dispatch:
permissions:
contents: write
env:
NUXT_APP_BASE_URL: '/${{ github.event.repository.name }}'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Cache node modules
id: cache-npm
uses: actions/cache@v3
env:
cache-name: cache-node-modules
with:
path: node_modules
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- if: ${{ steps.cache-npm.outputs.cache-hit != 'true' }}
name: List the state of node modules
continue-on-error: true
run: npm list
- name: Install dependencies
run: npm install
- name: Build
run: npm run generate
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist