Fix github actions #3
This file contains hidden or 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: Deploy to GitHub Pages | |
| on: | |
| push: | |
| branches: ["main"] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: チェックアウト | |
| uses: actions/checkout@v3 | |
| - name: Node.js をセットアップ | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: 20 | |
| - name: 依存関係をインストール | |
| run: npm ci | |
| - name: ビルド 1 | |
| run: npm run build:main-src | |
| - name: ビルド 2 | |
| run: npm run docs:build | |
| - name: アーティファクトをアップロード | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: ./docs/dist | |
| deploy: | |
| needs: build | |
| runs-on: ubuntu-latest | |
| permissions: | |
| pages: write | |
| id-token: write | |
| steps: | |
| - name: デプロイ | |
| uses: actions/deploy-pages@v4 |