Skip to content

Commit a4a4297

Browse files
committed
try gh actions to get modified time
1 parent 648d2a5 commit a4a4297

File tree

2 files changed

+39
-1
lines changed

2 files changed

+39
-1
lines changed

.github/workflows/deploy.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Build and deploy site
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
workflow_dispatch:
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v4
16+
with:
17+
fetch-depth: 0 # for jekyll-last-modified-at to access git history
18+
19+
- name: Setup Ruby
20+
uses: ruby/setup-ruby@v1
21+
with:
22+
ruby-version: '3.1'
23+
24+
- name: Install dependencies
25+
run: |
26+
gem install bundler
27+
bundle config set --local path 'vendor/bundle'
28+
bundle install
29+
30+
- name: Build site with Jekyll
31+
run: bundle exec jekyll build
32+
33+
- name: Deploy to GitHub pages
34+
uses: peaceiris/actions-gh-pages@v3
35+
with:
36+
github_token: ${{ secrets.GITHUB_TOKEN }}
37+
publish_dir: ./_site
38+
publish_branch: gh-pages

_includes/footer.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<p class="footer-text m-0 col-lg-8 col-md-12">
66
Copyright &copy; OrderLab 2017-<script>
77
document.write(new Date().getFullYear());
8-
</script> All rights reserved. | Last updated {{ site.time }}.
8+
</script> All rights reserved. | Last updated {{ page.last_modified_at }}.
99
</p>
1010
</div>
1111
</div>

0 commit comments

Comments
 (0)