Merge pull request #105 from tskaigi/fix/active-slot-design #87
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: Production Deploy | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| pre-build: | |
| uses: ./.github/workflows/ci.yml | |
| build: | |
| needs: pre-build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: pnpm/action-setup@v4 | |
| with: | |
| version: 10.14.0 | |
| - uses: actions/setup-node@v3 | |
| with: | |
| node-version: 24.5.0 | |
| cache: pnpm | |
| - name: Install dependencies | |
| run: pnpm install | |
| - name: Build Next.js pages | |
| run: pnpm run build | |
| - name: Upload artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: out | |
| path: ./out | |
| deploy: | |
| needs: build | |
| permissions: | |
| pages: write | |
| id-token: write | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Download artifact | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: out | |
| path: ./out | |
| - uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: ./out | |
| - id: deployment | |
| uses: actions/deploy-pages@v4 |