Skip to content

Test timestamp

Test timestamp #88

Workflow file for this run

name: Build page
on:
push:
schedule:
- cron: '0 23 * * 5' # At 23:00 on Friday
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2'
bundler-cache: true
- name: Build
run: bundle exec jekyll build
- name: Upload pages artifact
uses: actions/upload-pages-artifact@v3
if: github.ref == 'refs/heads/main'
with:
path: _site/
- name: test git
run: |
tld=$(git rev-parse --show-toplevel)/.git
echo $tld
ts=$(git --git-dir $tld log -n 1 --format="%ct" -- _posts/2023-11-19-gv-2023.markdown)
if [ ! $ts == 1701193041 ]; then
return 1
fi
deploy:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
needs: build
permissions:
pages: write
id-token: write
actions: read
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4