diff --git a/.github/workflows/eleventy.yaml b/.github/workflows/eleventy.yaml new file mode 100644 index 0000000..622277b --- /dev/null +++ b/.github/workflows/eleventy.yaml @@ -0,0 +1,13 @@ +name: eleventy +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@master + - name: get last sha + run: echo "LAST_COMMIT=`git rev-parse --short HEAD`" >> $GITHUB_ENV + - name: Build + uses: TartanLlama/actions-eleventy@master diff --git a/src/_data/site.js b/src/_data/site.js index 9ff7c7c..10ee0c1 100644 --- a/src/_data/site.js +++ b/src/_data/site.js @@ -1,7 +1,7 @@ const siteConfig = { name: "rizaldy.today", repo: "https://github.com/faultables/rizaldy.today", - last_commit: "main", + last_commit: process.env.LAST_COMMIT || "main", author: { name: "Rizaldy", avatar: "/assets/img/avatar.jpeg", diff --git a/src/_includes/elements/footer.liquid b/src/_includes/elements/footer.liquid index 8a4638b..01163cc 100644 --- a/src/_includes/elements/footer.liquid +++ b/src/_includes/elements/footer.liquid @@ -12,7 +12,7 @@