Skip to content

Instantly share code, notes, and snippets.

@abimaelmartell
Created February 13, 2020 19:08
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abimaelmartell/edc55dfa3e3ce176b9755f6dec42e086 to your computer and use it in GitHub Desktop.
Save abimaelmartell/edc55dfa3e3ce176b9755f6dec42e086 to your computer and use it in GitHub Desktop.
Deploy Slate Documentation to Github Pages using Github Actions
name: Github Pages Build
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Ruby 2.6
uses: actions/setup-ruby@v1
with:
ruby-version: 2.6.x
- uses: actions/cache@v1
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gems-
- name: Build
run: |
git config user.name "${GITHUB_ACTOR}"
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
gem install bundler
bundle config path vendor/bundle
bundle install --jobs 4 --retry 3
./deploy.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment