Merge pull request #342 from n3oltd/best-practices-customer-engagemen… #258
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: 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 }} |