mirror of
https://github.com/kou029w/intro-to-software-testing.git
synced 2025-01-18 08:05:02 +00:00
28 lines
616 B
YAML
28 lines
616 B
YAML
name: github-pages
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
jobs:
|
|
main:
|
|
permissions:
|
|
pages: write
|
|
id-token: write
|
|
environment: github-pages
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Install CJK fonts
|
|
run: sudo apt-get install -y fonts-noto-cjk
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: "lts/*"
|
|
cache: npm
|
|
- name: Build
|
|
run: |
|
|
npm ci
|
|
npm run build
|
|
- uses: actions/upload-pages-artifact@v3
|
|
with:
|
|
path: pages
|
|
- uses: actions/deploy-pages@v4
|