forked from academicpages/academicpages.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cicd: Add github workflows yml file to fix issue jekyll/jekyll#9544
- Loading branch information
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Build and Deploy a Jekyll Site to GitHub Pages | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
jekyll: | ||
runs-on: macos-latest | ||
steps: | ||
- name: 📂 setup | ||
uses: actions/checkout@v2 | ||
|
||
# include the lines below if you are using jekyll-last-modified-at | ||
# or if you would otherwise need to fetch the full commit history | ||
# however this may be very slow for large repositories! | ||
# with: | ||
# fetch-depth: '0' | ||
- name: 💎 setup ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: 3.2 | ||
|
||
- name: 🔨 install dependencies & build site | ||
uses: limjh16/jekyll-action-ts@v2 | ||
with: | ||
enable_cache: true | ||
|
||
- name: 🚀 deploy | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ./_site | ||
# if the repo you are deploying to is <username>.github.io, uncomment the line below. | ||
# if you are including the line below, make sure your source files are NOT in the "main" branch: | ||
publish_branch: dev |