Formatting fixes #43
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 and deploy to GitHub Pages | |
on: | |
push: | |
branches: | |
- release | |
jobs: | |
build_and_deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: '20.11.1' | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: '3.0.3' | |
bundler-cache: true | |
- uses: actions/checkout@v4 | |
with: | |
# The checkout action doesn't provide a way to get all commit history for a single branch | |
# So we use the magic number 2147483647 here which means infinite depth for git fetch | |
# See https://github.com/actions/checkout/issues/520, https://stackoverflow.com/a/6802238 | |
fetch-depth: 2147483647 | |
# Run custom build script | |
- shell: bash | |
env: | |
TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: chmod +x ./script/build.sh && ./script/build.sh |