Skip to content

Commit 7699022

Browse files
authored
Update build.yaml
1 parent 7fa86a6 commit 7699022

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

.github/workflows/build.yaml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ jobs:
1818
runs-on: ubuntu-latest
1919
steps:
2020
- uses: actions/checkout@v4
21+
with:
22+
fetch-depth: 0
23+
- uses: chetan/git-restore-mtime-action@v2
2124
- name: Cache 💾
2225
uses: actions/cache@v4
2326
with:
@@ -39,13 +42,6 @@ jobs:
3942
pip install --upgrade pip
4043
pip install Pygments pandoc-include
4144
cd /home/runner/work/csci-1301.github.io/csci-1301.github.io/
42-
# Trying to restore correct timestamp after cloning
43-
# https://stackoverflow.com/a/55609950/2657549
44-
git ls-tree -r --name-only HEAD | while read filename; do
45-
unixtime=$(git log -1 --format="%at" -- "${filename}")
46-
touchtime=$(date -d @$unixtime +'%Y%m%d%H%M.%S')
47-
touch -t ${touchtime} "${filename}"
48-
done
4945
wget https://github.com/csci-1301/csci-1301.github.io/releases/download/latest/release.zip && unzip -q release.zip
5046
- name: Build 🏗️
5147
run: make all

0 commit comments

Comments
 (0)