Index Redpanda Intruqt courses and upload to Algolia #2
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: Index Redpanda Intruqt courses and upload to Algolia | |
on: | |
schedule: | |
- cron: '0 21 * * 0' # Runs every Sunday at 9pm UTC | |
workflow_dispatch: | |
jobs: | |
update-algolia-index: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18' | |
- name: Install dependencies | |
run: cd scripts/index-masterclasses && npm install | |
- name: Run indexing script | |
run: node scripts/index-masterclasses/index-masterclasses.js | |
env: | |
ALGOLIA_APP_ID: ${{ secrets.ALGOLIA_APP_ID }} | |
ALGOLIA_ADMIN_API_KEY: ${{ secrets.ALGOLIA_ADMIN_API_KEY }} | |
ALGOLIA_INDEX_NAME: ${{ secrets.ALGOLIA_INDEX_NAME }} | |
INSTRUQT_API_KEY: ${{ secrets.INSTRUQT_API_KEY}} |