Skip to content

Merge pull request #78 from n3oltd/cancel-existing-sponsorship #56

Merge pull request #78 from n3oltd/cancel-existing-sponsorship

Merge pull request #78 from n3oltd/cancel-existing-sponsorship #56

Workflow file for this run

name: Main Branch CI
on:
push:
branches:
- main
jobs:
job1:
name: Build & Deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Get the content of algolia.json as config
id: algolia_config
run: echo "::set-output name=config::$(cat algolia.json | jq -r tostring)"
- uses: actions/setup-node@v3
with:
node-version: 18
cache: yarn
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Build
run: yarn build
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build
cname: support.n3o.ltd
user_name: github-actions[bot]
user_email: 41898282+github-actions[bot]@users.noreply.github.com
# - name: Sleep for 60 seconds
# run: sleep 60s
# - name: Run Algolia scraper
# uses: signcl/docsearch-scraper-action@master
# env:
# APPLICATION_ID: ${{ secrets.ALGOLIA_APPLICATION_ID }}
# API_KEY: ${{ secrets.ALGOLIA_API_KEY }}
# CONFIG: ${{ steps.algolia_config.outputs.config }}