Skip to content

制御構文の変更 #1550

制御構文の変更

制御構文の変更 #1550

Workflow file for this run

name: GitHub Pages
on:
push:
branches:
- master
pull_request:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4.2.2
- name: Setup Node.js
uses: actions/setup-node@v4.1.0
with:
node-version: 20.x
- name: AiScript Cache dependencies
uses: actions/cache@v4
with:
path: ~/.npm
key: npm-${{ hashFiles('package-lock.json') }}
restore-keys: npm-
- name: AiScript Install dependencies
run: npm ci
- name: AiScript Build
run: npm run build
- name: Cache dependencies
uses: actions/cache@v4
with:
path: ~/.npm
key: npm-playground-${{ hashFiles('playground/package-lock.json') }}
restore-keys: npm-playground-
- name: Install dependencies
run: npm ci
working-directory: ./playground
- name: Build
run: npm run build
working-directory: ./playground
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
if: ${{ github.ref == 'refs/heads/master' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./playground/dist