Skip to content

Merge pull request #84 from campuslightbox/campuslightbox-patch-2 #37

Merge pull request #84 from campuslightbox/campuslightbox-patch-2

Merge pull request #84 from campuslightbox/campuslightbox-patch-2 #37

Workflow file for this run

name: Build & Deploy
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Install Node.js
uses: actions/setup-node@v2
with:
node-version: 14.17.5
- name: Install Packages & Build
run: yarn install && yarn build
- name: Upload Production-Ready Build Files
uses: actions/upload-artifact@v3
with:
name: production-files
path: ./build
deploy:
name: Deploy
needs: build
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master'
steps:
- name: Download Production-Ready Build Files
uses: actions/download-artifact@v2
with:
name: production-files
path: ./build
- name: Deploy to gh-pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build