Skip to content

Rebuild Algolia Index #43

Rebuild Algolia Index

Rebuild Algolia Index #43

Workflow file for this run

name: Rebuild Algolia Index
on:
push:
branches:
- master
schedule:
- cron: '0 8 * * *'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 6.0.0
- name: Install global packages
run: |
npm install gulp-cli -g
npm install babel-cli -g
- name: Install dependencies
run: npm install
- name: Clone repository
run: git clone https://github.com/cosname/cosx.org.git docs
- name: Prepare environment
run: |
echo "ALGOLIA_API_SECRET=${{ secrets.AL_VALUE }}" >> .env
curday=$(date +%Y-%m-%d)
echo "var curday='2020-09-01'" >> gulpfile.babel.js2
cat gulpfile.babel.js >> gulpfile.babel.js2
rm gulpfile.babel.js
mv gulpfile.babel.js2 gulpfile.babel.js
- name: Build and test
run: |
gulp index