github-pages #7
This file contains 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: Refresh Algolia Index | |
on: | |
deployment: | |
jobs: | |
refresh: | |
runs-on: ubuntu-latest | |
steps: | |
- if: ${{ github.event.deployment.environment == 'github-pages' }} | |
uses: algolia/[email protected] | |
id: algolia_crawler | |
with: # mandatory parameters | |
crawler-user-id: ${{ secrets.CRAWLER_USER_ID }} | |
crawler-api-key: ${{ secrets.CRAWLER_API_KEY }} | |
algolia-app-id: ${{ secrets.ALGOLIA_APP_ID }} | |
algolia-api-key: ${{ secrets.ALGOLIA_API_KEY }} | |
crawler-name: 'help-yagpdb' | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
site-url: 'https://help.yagpdb.xyz' |