diff --git a/.github/workflows/index.yml b/.github/workflows/index.yml new file mode 100644 index 0000000000..993d35596b --- /dev/null +++ b/.github/workflows/index.yml @@ -0,0 +1,23 @@ +name: Search Index + +on: + push: + branches: + - main + +jobs: + indexing: + runs-on: ubuntu-latest + name: Indexing + steps: + - uses: actions/checkout@v4 + with: + repository: 'meilisearch/scrapix' + - name: Use Node.js + uses: actions/setup-node@v3 + with: + node-version: '20.x' + - run: yarn + - run: yarn start -c "$SCRAPIX_CONFIG" + env: + SCRAPIX_CONFIG: ${{ secrets.SCRAPIX_CONFIG }}