Skip to content

Add crawler-name

Add crawler-name #148

name: Deploy to Netlify
on:
push:
branches:
- website-v2
jobs:
website:
name: Build the Rascal website
runs-on: buildjet-4vcpu-ubuntu-2204
steps:
- name: Clone
uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '11'
cache: 'maven'
- uses: actions/setup-node@v3
with:
node-version: 16
cache: yarn
- uses: browser-actions/setup-chrome@latest
with:
chrome-version: 1047731 # v107
- run: which chrome
- uses: nanasess/setup-chromedriver@v1
with:
chromedriver-version: '107.0.5304.62'
- run: which chromedriver
# Copy docs from dependent projects, run tutor on local courses folder and copy results into docs and static/assets
- name: Run rascal-tutor and reuse libraries
run: MAVEN_OPTIONS="-Xss256m -Xmx3G" mvn -B clean package -Dwebdriver.chrome.driver=/usr/local/bin/chromedriver -Dwebdriver.chrome.browser=`which chrome`
- name: Netlify Deploy
uses: jsmrcaga/[email protected]
with:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_API_KEY }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
NETLIFY_DEPLOY_TO_PROD: true
install_command: yarn install --frozen-lockfile
build_command: yarn build
- name: Algolia crawler creation and crawl
uses: algolia/[email protected]
id: algolia_crawler
with:
crawler-api-base-url: 'https://crawler.algolia.com/api/1/'
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 }}
site-url: 'https://www.rascal-mpl.org'
crawler-name: 'rascal'