Skip to content

Orama Deploy

Orama Deploy #3

Workflow file for this run

name: Orama Deploy
on:
schedule:
- cron: "*/15 * * * *"
jobs:
orama:
runs-on: ubuntu-22.04
strategy:
matrix:
environment: ["prod", "staging"]
environment:
name: ${{ matrix.environment }}
steps:
- name: Deploy ${{ matrix.environment }}
env:
ORAMA_INDEX_ID: ${{ secrets.ORAMA_INDEX_ID }}
ORAMA_PRIVATE_API_KEY: ${{ secrets.ORAMA_PRIVATE_API_KEY }}
run: |
curl https://api.oramasearch.com/api/v1/webhooks/$ORAMA_INDEX_ID/deploy \
-X POST \
-H "Authorization: Bearer $ORAMA_PRIVATE_API_KEY"