intro-to-software-testing/.github/workflows/github-pages.yml
2024-01-22 14:18:35 +09:00

26 lines
532 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:
- 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