Skip to content

doc-update

doc-update #360

Workflow file for this run

name: Build site
on:
push:
branches: [main, master]
repository_dispatch:
types: [doc-update]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: "true"
fetch-depth: 0
- name: Update submodules
run: |
git config --global user.name "Github Actions"
git config --global user.email "[email protected]"
git submodule update --remote --recursive
- name: Set up Ruby 3.2
uses: ruby/setup-ruby@ec02537da5712d66d4d50a0f33b7eb52773b5ed1
with:
ruby-version: "3.2"
- name: Install dependencies
run: bundle install
- name: Run middleman
run: bundle exec middleman build --verbose || exit 0 # Build probably will have errors
- name: Make build/docs not a submodule
run: rm -rf build/docs/.git || exit 0
- uses: JamesIves/github-pages-deploy-action@v4
with:
branch: deploy
folder: build