mirror of
https://github.com/metagov/govarch-website.git
synced 2025-04-25 02:48:00 +00:00
27 lines
706 B
YAML
27 lines
706 B
YAML
name: Jekyll Deploy
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
build_and_deploy:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: GitHub Checkout
|
|
uses: actions/checkout@v1
|
|
- name: Bundler Cache
|
|
uses: actions/cache@v1
|
|
with:
|
|
path: vendor/bundle
|
|
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-gems-
|
|
- name: Build & Deploy to GitHub Pages
|
|
uses: joshlarsen/jekyll4-deploy-gh-pages@master
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
GITHUB_REPOSITORY: ${{ secrets.GITHUB_REPOSITORY }}
|
|
GITHUB_ACTOR: ${{ secrets.GITHUB_ACTOR }}
|