decentralized-id.github.io/.github/workflows/github-pages.yml

29 lines
703 B
YAML
Raw Normal View History

2022-11-27 01:08:22 +00:00
name: Build and deploy Jekyll site to GitHub Pages
on:
push:
branches:
- master
paths-ignore:
- '_data/**'
- '.github/workflows/twitter.yml'
2022-11-27 01:34:48 +00:00
jobs:
jekyll:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
2022-11-27 01:33:18 +00:00
# Use GitHub Actions' cache to shorten build times and decrease load on servers
- uses: actions/cache@v2
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile') }}
restore-keys: |
${{ runner.os }}-gems-
# Specify the target branch (optional)
- uses: helaili/jekyll-action@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
target_branch: 'gh-pages'