Skip to content

Commit

Permalink
Merge pull request #481 from thostetler/fix-last-modified-meta-github…
Browse files Browse the repository at this point in the history
…-pages

add github action to deploy to pages
  • Loading branch information
thostetler authored Aug 22, 2024
2 parents 5c10358 + e85b3fc commit e3a523b
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Build and Deploy to Github Pages
on:
push:
branches:
- master
jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
# The checkout action doesn't provide a way to get all commit history for a single branch
# So we use the magic number 2147483647 here which means infinite depth for git fetch
# See https://github.com/actions/checkout/issues/520, https://stackoverflow.com/a/6802238
# this is so that last-modified-at plugin can use the git history to determine the last modified date
fetch-depth: 2147483647

# Use GitHub Actions' cache to cache dependencies on servers
- uses: actions/cache@v4
with:
path: |
.asdf/**
vendor/bundle
key: ${{ runner.os }}-cache-${{ hashFiles('**/cache.key') }}
restore-keys: |
${{ runner.os }}-cache-
# Use GitHub Deploy Action to build and deploy to Github
- uses: jeffreytse/[email protected]
with:
provider: 'github'
token: ${{ secrets.GITHUB_TOKEN }}
branch: 'gh-pages'
jekyll_src: './'
jekyll_cfg: '_config.yml'

0 comments on commit e3a523b

Please sign in to comment.