Add reset chat feature and optimize code (#104) #64
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 Pages | |
| on: | |
| push: | |
| branches: ["main"] | |
| concurrency: | |
| group: "pages" | |
| cancel-in-progress: false | |
| jobs: | |
| verify: | |
| uses: ./.github/workflows/verify.yml | |
| secrets: inherit | |
| build: | |
| needs: [verify] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Setup GitHub Pages | |
| uses: actions/configure-pages@v6 | |
| with: | |
| static_site_generator: next | |
| - uses: jdx/mise-action@v4 | |
| - name: Build with Next.js | |
| run: mise run build | |
| env: | |
| NEXT_EXPORT: "true" | |
| - name: Upload artifact | |
| uses: actions/upload-pages-artifact@v5 | |
| with: | |
| path: ./out | |
| deploy: | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| runs-on: ubuntu-latest | |
| needs: build | |
| steps: | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v5 |