more testing with GH pages actions
This commit is contained in:
parent
a8442895ae
commit
70e39eb137
19
.github/workflows/github-pages.yml
vendored
19
.github/workflows/github-pages.yml
vendored
@ -1,4 +1,4 @@
|
|||||||
name: Build and deploy Jekyll site to GitHub Pages
|
name: Build and Deploy GH Pages with Jekyll Actions
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@ -7,9 +7,22 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
github-pages:
|
github-pages:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-16.04
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- 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:
|
env:
|
||||||
JEKYLL_PAT: ${{ secrets.JEKYLL_PAT }}
|
JEKYLL_PAT: ${{ secrets.JEKYLL_PAT }}
|
||||||
|
with:
|
||||||
|
target_branch: 'gh-pages'
|
||||||
|
34
.github/workflows/jekyll.yml
vendored
34
.github/workflows/jekyll.yml
vendored
@ -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'
|
|
Loading…
x
Reference in New Issue
Block a user