Skip to content

Merge pull request #47 from MasatoMakino/dependabot/github_actions/pe… #18

Merge pull request #47 from MasatoMakino/dependabot/github_actions/pe…

Merge pull request #47 from MasatoMakino/dependabot/github_actions/pe… #18

Workflow file for this run

name: Publish github pages
on:
push:
branches: [main]
paths:
- "src/**"
- "demoSrc/**"
- "package.json"
- "README.md"
- "tsconfig**.json"
- ".github/workflows/*.yml"
jobs:
publish:
if: ${{ github.ref == 'refs/heads/main' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: "18"
cache: "npm"
- run: npm ci
- run: npm run build
- name: Deploy Github pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs