more testing with GH pages actions

This commit is contained in:
Charles 2021-01-13 21:35:44 -05:00
parent a8442895ae
commit 70e39eb137
No known key found for this signature in database
GPG Key ID: 251655CC546D9787
2 changed files with 16 additions and 37 deletions

View File

@ -1,4 +1,4 @@
name: Build and deploy Jekyll site to GitHub Pages
name: Build and Deploy GH Pages with Jekyll Actions
on:
push:
@ -7,9 +7,22 @@ on:
jobs:
github-pages:
runs-on: ubuntu-latest
runs-on: ubuntu-16.04
steps:
- uses: actions/checkout@v2
- uses: helaili/jekyll-action@2.0.5
# 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.lock') }}
restore-keys: |
${{ runner.os }}-gems-
# Specify the target branch (optional)
- uses: helaili/jekyll-action@v2
env:
JEKYLL_PAT: ${{ secrets.JEKYLL_PAT }}
with:
target_branch: 'gh-pages'

View File

@ -1,34 +0,0 @@
name: Build and Deploy GH Pages with Jekyll Actions
on:
push:
branches:
- master
jobs:
jekyll:
runs-on: ubuntu-16.04
steps:
- uses: actions/checkout@v2
# 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.lock') }}
restore-keys: |
${{ runner.os }}-gems-
# Standard usage
- uses: helaili/jekyll-action@v2
env:
# Ideally use GITHUB_TOKEN but it gives error for this action.
JEKYLL_PAT: ${{ secrets.JEKYLL_PAT }}
# Specify the target branch (optional)
- uses: helaili/jekyll-action@v2
env:
JEKYLL_PAT: ${{ secrets.JEKYLL_PAT }}
with:
target_branch: 'gh-pages'