Merge pull request #86 from MasatoMakino/version/v0.6.0 #39
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish github pages | |
on: | |
push: | |
branches: [main] | |
paths: | |
- "src/**" | |
- "demoSrc/**" | |
- ".github/**" | |
- "package.json" | |
- "README.md" | |
- "tsconfig**.json" | |
jobs: | |
publish: | |
if: ${{ github.ref == 'refs/heads/main' }} | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "18" | |
cache: "npm" | |
- run: sudo apt-get update | |
- name: Install dependencies for headless-gl | |
run: sudo apt-get install -y build-essential libxi-dev libglu1-mesa-dev libglew-dev pkg-config | |
- run: npm ci | |
- run: npm run build | |
- name: Deploy Github pages | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./docs |