Skip to content

Build and Deploy to Github Pages #2144

Build and Deploy to Github Pages

Build and Deploy to Github Pages #2144

Workflow file for this run

name: Build and Deploy to Github Pages
on:
push:
branches:
- master # Here source code branch is `master`, it could be other branch
workflow_run:
workflows: ["Update Data"]
types:
- completed
jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
# Use GitHub Actions' cache to cache dependencies on servers
- uses: actions/cache@v3
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gems-
# Use GitHub Deploy Action to build and deploy to Github
- uses: jeffreytse/[email protected]
with:
provider: 'github'
token: ${{ secrets.GITHUB_TOKEN }}
cname: ${{ secrets.CNAME }}
pre_build_commands: git config --global http.version HTTP/1.1; git config --global http.postBuffer 157286400;