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