Skip to content

Build and Deploy

Build and Deploy #303

Workflow file for this run

name: Build and Deploy
on:
push:
branches:
- master
schedule:
- cron: 0 0 * * *
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
env:
BUNDLE_WITHOUT: development
- name: Install and Build 🔧 # This example project is built using npm and outputs the result to the 'build' folder. Replace with the commands required to build your project, or remove this step entirely if your site is pre-built.
run: |
bundle exec middleman build --environment production
env:
NOTION_DONATIONS_UPDATER_API_KEY: ${{ secrets.NOTION_DONATIONS_UPDATER_API_KEY }}
RACK_ENV: production
BUNDLE_WITHOUT: development
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages # The branch the action should deploy to.
folder: build # The folder the action should deploy.