Skip to content

Fix Algolia action version typo #64

Fix Algolia action version typo

Fix Algolia action version typo #64

name: Deploy Mokkery website
on:
push:
branches: ["master"]
workflow_dispatch:
deployment:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build:
name: Build Mokkery Website
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: 18
cache: npm
cache-dependency-path: ./website/package-lock.json
- uses: gradle/gradle-build-action@v2
- name: Install dependencies
run: npm --prefix website ci
- name: Build website
run: npm --prefix website run build
- name: Upload Build Artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./website/build
deploy:
name: Deploy Mokkery Website
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
- name: Reindex Algolia
uses: algolia/algoliasearch-crawler-github-actions@v1.1.13
id: algolia_crawler
with:
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: mokkery
site-url: 'https://mokkery.dev'