Skip to content

added a warning window #59

added a warning window

added a warning window #59

Workflow file for this run

name: Build and Deploy to GitHub Pages
on:
# Runs on pushes targeting the default branch
push:
branches: ['main']
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
environment:
name: github-pages
steps:
- uses: actions/checkout@v3
- uses: kenchan0130/actions-system-info@master
id: system-info
- id: cache-node-modules
uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.os }}-${{ steps.system-info.outputs.release }}-node-modules-${{ hashFiles('package-lock.json') }}
- if: steps.cache-node-modules.outputs.cache-hit != 'true'
run: npm ci
- run: npm run build
- uses: actions/upload-pages-artifact@v1
with:
path: dist/
deploy-gh-pages:
needs: build
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- uses: actions/deploy-pages@v1