Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

CI

CI #8939

Workflow file for this run

---
# yamllint disable rule:line-length
name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
schedule:
- cron: "0 */12 * * *"
repository_dispatch:
types: [rebuild]
workflow_dispatch:
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: "14"
- name: Install yarn dependencies
if: steps.node_modules.outputs.cache-hit != 'true'
run: |
yarn install
- name: Build gatsby production package
run: |
yarn build
env:
ALGOLIA_APP_ID: ${{ secrets.ALGOLIA_APP_ID }}
ALGOLIA_API_KEY: ${{ secrets.ALGOLIA_API_KEY }}
GITHUB_USERNAME: ${{ secrets.GATSBY_GITHUB_USERNAME }}
GITHUB_TOKEN: ${{ secrets.GATSBY_GITHUB_TOKEN }}
- name: Publish to cloudflare
uses: cloudflare/[email protected]
with:
apiToken: ${{ secrets.CF_API_TOKEN }}