Skip to content

Instantly share code, notes, and snippets.

@erap129
Last active November 4, 2022 04:31
Show Gist options
  • Save erap129/00755d17ced40602579f11956c8ef7b7 to your computer and use it in GitHub Desktop.
Save erap129/00755d17ced40602579f11956c8ef7b7 to your computer and use it in GitHub Desktop.
blog_action
name: Build and deploy Jekyll site to GitHub Pages
on:
push:
branches:
- master # or master before October 2020
schedule:
- cron: "0 0 * * *"
jobs:
github-pages:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile') }}
restore-keys: |
${{ runner.os }}-gems-
- uses: helaili/[email protected] # Choose any one of the Jekyll Actions
with: # Some relative inputs of your action
token: ${{ secrets.JEKYLL_PAT }}
target_branch: 'gh-pages'
env:
JEKYLL_PAT: ${{ secrets.JEKYLL_PAT }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment