fixed build #392
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: Publish website | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - master | |
| workflow_dispatch: | |
| jobs: | |
| publish-npm: | |
| runs-on: ubuntu-latest | |
| env: | |
| PUBLIC_MEILISEARCH_KEY: ${{ secrets.PUBLIC_MEILISEARCH_KEY }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| registry-url: https://registry.npmjs.org/ | |
| - name: Install deps | |
| run: npm ci | |
| - name: Generate unified API docs | |
| run: npm run generate:unified-api | |
| - name: deployment | |
| run: npx bunosh publish | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run-search-scraper: | |
| name: Run Search Scraper | |
| runs-on: ubuntu-latest | |
| needs: publish-npm | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Index docs in Meilisearch | |
| env: | |
| MEILISEARCH_HOST_URL: ${{ secrets.MEILISEARCH_HOST_URL }} | |
| MEILISEARCH_API_KEY: ${{ secrets.MEILISEARCH_API_KEY }} | |
| run: npm run search:scrape |