Skip to content

Commit

Permalink
Add build workflow for PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
sjahu committed Aug 11, 2024
1 parent 67a44de commit 949077d
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Build and deploy Jekyll site to GitHub Pages

on:
workflow_deploy:
push:
branches:
- main
Expand All @@ -10,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out repo
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
Expand All @@ -20,7 +21,7 @@ jobs:
with:
enable_cache: true
- name: Deploy site to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./_site
Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Build Jekyll site

on:
workflow_deploy:
pull_request:
types:
- opened
- edited
- synchronize
- reopened

jobs:
jekyll:
runs-on: ubuntu-latest
steps:
- name: Check out repo
uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.1
- name: Build Jekyll site
uses: limjh16/jekyll-action-ts@v2
with:
enable_cache: true

0 comments on commit 949077d

Please sign in to comment.