Skip to content

Commit 7c01610

Browse files
authored
Merge pull request #16 from Nirajn2311/gh-actions
feat: GH Action for deploying blog
2 parents 147ca32 + 4d79ed3 commit 7c01610

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/deploy-blog.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Deploy Blog
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
deploy-blog:
10+
runs-on: ubuntu-18.04
11+
steps:
12+
- name: Checkout Repo
13+
uses: actions/checkout@v2.3.4
14+
- name: Cache
15+
uses: actions/cache@v2
16+
with:
17+
path: vendor/bundle
18+
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile') }}
19+
restore-keys: |
20+
${{ runner.os }}-gems-
21+
- name: Jekyll Actions
22+
uses: helaili/jekyll-action@v2
23+
with:
24+
token: ${{ secrets.GITHUB_TOKEN }}
25+
target_branch: 'gh-pages'

0 commit comments

Comments
 (0)