Merge pull request #676 from codeceptjs/feature/global_refactor #368
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: Sync changelog from CodeceptJS 4.x | |
| run: npm run sync:changelog | |
| - name: Generate unified API docs | |
| run: npm run generate:unified-api | |
| - name: deployment | |
| run: ./runok.js 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: | | |
| docker run -t --rm \ | |
| -e MEILISEARCH_HOST_URL=$MEILISEARCH_HOST_URL \ | |
| -e MEILISEARCH_API_KEY=$MEILISEARCH_API_KEY \ | |
| -v $PWD/docsearch.json:/docs-scraper/docsearch.json \ | |
| getmeili/docs-scraper:latest pipenv run ./docs_scraper docsearch.json |