Add GitHub actions to automatically build the site

pull/1/head
Şahin Akkaya 2022-01-04 12:09:36 +03:00 committed by Asocia
parent 8482f51cdc
commit 6887a9ea0d
2 changed files with 31 additions and 0 deletions

30
.github/workflows/jekyll.yml vendored 100644
View File

@ -0,0 +1,30 @@
name: Jekyll site CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
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') }}
restore-keys: |
${{ runner.os }}-gems-
# Specify the target branch (optional)
- name: Jekyll Actions
uses: helaili/jekyll-action@2.2.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
keep_history: true
target_branch: 'gh-pages'

View File

@ -63,6 +63,7 @@ author:
masthead_title: "/home/sahin/"
keep_files: [.git]
# Build settings
theme: minimal-mistakes-jekyll