ci: setup initial gh actions
This commit is contained in:
parent
e46fa027d7
commit
64a00bdbef
13
.github/workflows/eleventy.yaml
vendored
Normal file
13
.github/workflows/eleventy.yaml
vendored
Normal file
@ -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
|
@ -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",
|
||||
|
@ -12,7 +12,7 @@
|
||||
<li><a class="u-no-underline u-underline--hover" href="/colophon">Colophon</a></li>
|
||||
<li>
|
||||
<a class="u-no-underline u-underline--hover" href="{{ site.repo }}/commit/{{ site.last_commit }}"
|
||||
>Source Code</a
|
||||
>Source Code ({{ site.last_commit }})</a
|
||||
>
|
||||
</li>
|
||||
</ul>
|
||||
|
Loading…
Reference in New Issue
Block a user