-
-
Notifications
You must be signed in to change notification settings - Fork 56
Closed
Description
Behaviour
I built a static site generator in python and use the git commit history of markdown files to display a "Last modified" date on the built website. When used locally, my build process works and display the date correctly.
But when I used this github action, the git history seems to disappear entirely and the date displayed is the built date,
Demo files
- You can see that this file last modification is may 24.
- But the built page shows May 29, the last time the site was built.
Expected behaviour
The date on the built page should be may 24.
Actual behaviour
The date on the built page is May 29,
Configuration
- Repository URL (if public): https://github.com/Thomasorus/Chisai
- Build URL (if public): https://thomasorus.github.io/Chisai/
name: website
on: push
jobs:
publish:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
-
name: Generate Chisai
run: python3 src/build.py --prod
#-
#name: Create cname file
# run: echo 'mydomain.com' > build/CNAME
-
name: Deploy to GitHub Pages
if: success()
uses: crazy-max/ghaction-github-pages@v2
with:
target_branch: gh-pages
build_dir: build
keep_history: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Logs
Thanks for your help.
Metadata
Metadata
Assignees
Labels
No labels