doc-update #380
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 "noreply@example.com" | |
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 | |