diff --git a/.github/workflows/index.yml b/.github/workflows/index.yml new file mode 100644 index 0000000000..dab0a7b44d --- /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 }} diff --git a/.github/workflows/production.yml b/.github/workflows/production.yml index 672751c88c..d11c74450c 100644 --- a/.github/workflows/production.yml +++ b/.github/workflows/production.yml @@ -78,11 +78,3 @@ jobs: echo ${{ secrets.GH_REGISTRY_TOKEN }} | docker login ghcr.io --username ${{ env.REGISTRY_USERNAME }} --password-stdin docker-compose -f ${{ env.STACK_FILE }} config env $(cat .env | xargs) docker stack deploy --prune --resolve-image always --with-registry-auth -c ${{ env.STACK_FILE }} ${{ env.REPOSITORY }} - - indexing: - needs: deploy - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - name: Run Scrapix - run: docker run --rm --env CRAWLER_CONFIG=${{ secrets.SCRAPIX_CONFIG }} getmeili/scrapix:v0.1.8