Skip to content

Build & Deploy

Build & Deploy #1152

Workflow file for this run

name: Build & Deploy
on:
push:
branches:
- main
repository_dispatch:
types:
- "publish-from-wordpress"
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version: 16
- name: Installing packages
run: yarn
- name: Build Gridsome site
run: yarn build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist