Add Autocomplete playground tool to Astro/Vue frontend #9
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: | |
| # New releases will cause the gh-pages branch to be updated. | |
| release: | |
| # TODO: Remove the pull_request trigger below before merging this PR | |
| pull_request: | |
| permissions: | |
| contents: write | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: '22' | |
| cache: npm | |
| cache-dependency-path: web/package-lock.json | |
| - name: Install dependencies | |
| run: npm ci | |
| working-directory: web | |
| - name: Build | |
| run: npm run build | |
| working-directory: web | |
| - name: Deploy to gh-pages | |
| uses: peaceiris/actions-gh-pages@v4 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: web/dist | |
| # force_orphan replaces the entire gh-pages branch on every deploy, | |
| # ensuring no previously-deployed files are left behind. | |
| force_orphan: true |