Skip to content

Bump the all group with 4 updates #187

Bump the all group with 4 updates

Bump the all group with 4 updates #187

Workflow file for this run

# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: Deploy to gh pages
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@main
with:
persist-credentials: false
submodules: recursive
- uses: actions/setup-node@v3
with:
node-version: 18
cache: 'npm'
- name: Cache build
id: cache-build
uses: actions/cache@v3
with:
key: build-${{ hashFiles('package-lock.json', 'build-wasm.sh') }}
path: build
- name: install
run: npm install
- if: ${{ steps.cache-build.outputs.cache-hit == 'true' }}
name: build (cached)
run: npm run build-cached
- if: ${{ steps.cache-build.outputs.cache-hit != 'true' }}
name: build
run: npm run build
- name: deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{secrets.GITHUB_TOKEN}}
publish_dir: build