name: Build example page permissions: contents: write on: workflow_dispatch: push: branches: [main] pull_request: branches: [main] jobs: build: runs-on: ubuntu-latest strategy: matrix: node-version: [20.x] steps: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5 - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4 with: node-version: ${{ matrix.node-version }} - name: Build production assets run: | npm install npm run prod --if-present - name: Store artifacts uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4 with: name: build-site path: dist - name: Build GitHub Pages uses: crazy-max/ghaction-github-pages@df5cc2bfa78282ded844b354faee141f06b41865 # v4.2.0 with: build_dir: dist jekyll: false env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}