Skip to content

Commit

Permalink
GH Actions minor update
Browse files Browse the repository at this point in the history
  • Loading branch information
hmistry committed Jan 16, 2025
1 parent fb023f9 commit ca3b03a
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 5 deletions.
28 changes: 24 additions & 4 deletions .github/workflows/jekyll-github-pages.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,53 @@
# based on examples from:
# - https://github.com/actions/starter-workflows/blob/main/pages/jekyll.yml
# - https://www.moncefbelyamani.com/making-github-pages-work-with-latest-jekyll/

name: Build and Deploy a Jekyll Site to GitHub Pages

on:
push:
branches:
- main

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:


# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false

jobs:
jekyll:
runs-on: macos-latest
steps:
- name: πŸ“‚ setup
- name: πŸ“‚ Checkout
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
- name: πŸ’Ž Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.3

- name: πŸ”¨ install dependencies & build site
- name: πŸ”¨ Install dependencies & build site
uses: limjh16/jekyll-action-ts@v2
with:
enable_cache: true

- name: πŸš€ deploy
- name: πŸš€ Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
4 changes: 3 additions & 1 deletion _posts/2017-10-01-hello-universe.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,6 @@ Testing the timeago plugin on GitHub Pages
{% assign date = '2020-04-13T10:20:00Z' %}

- Original date - {{ date }}
- With timeago filter - {{ date | timeago }}
- With timeago filter - {{ date | timeago }}

Testing changes to GA.

0 comments on commit ca3b03a

Please sign in to comment.