Skip to content

Build and Deploy

Build and Deploy #1276

Workflow file for this run

name: Build and Deploy
on:
push:
branches:
- main
workflow_dispatch:
schedule:
- cron: "5 3 * * *"
env:
PUBLIC_STRAPI_URL: ${{ vars.PUBLIC_STRAPI_URL }}
jobs:
build-and-deploy:
concurrency: ci-${{ github.ref }}
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- name: Install and Build 🔧
run: |
yarn install
yarn build
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4.2.5
with:
branch: gh-pages
folder: dist