intro-to-software-testing/.github/workflows/github-pages.yml

29 lines
616 B
YAML
Raw Normal View History

2021-07-27 17:47:13 +09:00
name: github-pages
on:
push:
2024-01-22 14:18:35 +09:00
branches:
- main
2021-07-27 17:47:13 +09:00
jobs:
main:
2022-08-01 17:43:20 +09:00
permissions:
pages: write
id-token: write
environment: github-pages
2021-07-27 17:47:13 +09:00
runs-on: ubuntu-latest
steps:
2024-01-24 13:14:55 +09:00
- name: Install CJK fonts
run: sudo apt-get install -y fonts-noto-cjk
2023-10-01 00:33:23 +00:00
- uses: actions/checkout@v4
2023-11-01 02:06:36 +00:00
- uses: actions/setup-node@v4
2024-01-22 14:18:35 +09:00
with:
node-version: "lts/*"
cache: npm
- name: Build
2022-02-22 18:02:22 +09:00
run: |
2024-01-22 14:18:35 +09:00
npm ci
npm run build
2024-01-01 00:52:23 +00:00
- uses: actions/upload-pages-artifact@v3
2022-08-01 17:43:20 +09:00
with:
path: pages
2024-01-01 00:52:23 +00:00
- uses: actions/deploy-pages@v4