2019-09-05 23:44:19 +02:00
|
|
|
name: Build with Hugo
|
2019-08-22 22:46:28 +02:00
|
|
|
|
|
|
|
on: [push]
|
|
|
|
|
|
|
|
jobs:
|
2020-03-01 00:35:10 +01:00
|
|
|
hugo-latest:
|
2019-08-22 23:07:54 +02:00
|
|
|
runs-on: ubuntu-latest
|
2019-08-22 22:46:28 +02:00
|
|
|
steps:
|
2019-08-22 22:54:29 +02:00
|
|
|
- uses: actions/checkout@master
|
2019-08-22 23:01:33 +02:00
|
|
|
|
2019-08-22 22:54:29 +02:00
|
|
|
- name: Install Hugo
|
2019-08-22 23:14:15 +02:00
|
|
|
run: |
|
2020-03-01 00:08:51 +01:00
|
|
|
LATEST_VERSION=`curl --silent "https://api.github.com/repos/gohugoio/hugo/releases/latest" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/'`
|
|
|
|
VERSION_NO_PREFIX=`echo $LATEST_VERSION | cut -c 2-`
|
|
|
|
wget "https://github.com/gohugoio/hugo/releases/download/$LATEST_VERSION/hugo_extended_${VERSION_NO_PREFIX}_Linux-64bit.deb" -O /tmp/hugo.deb
|
2019-08-22 23:14:15 +02:00
|
|
|
sudo dpkg -i /tmp/hugo.deb
|
2019-08-22 23:01:33 +02:00
|
|
|
|
2019-08-22 22:54:29 +02:00
|
|
|
- name: Run Hugo
|
2019-08-22 23:01:33 +02:00
|
|
|
working-directory: exampleSite
|
|
|
|
run: hugo --themesDir ../..
|
2020-03-01 00:35:10 +01:00
|
|
|
hugo-minimum:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@master
|
|
|
|
|
|
|
|
- name: Install Hugo
|
|
|
|
run: |
|
2020-03-07 18:47:16 +01:00
|
|
|
wget "https://github.com/gohugoio/hugo/releases/download/v0.62.0/hugo_extended_0.62.0_Linux-64bit.deb" -O /tmp/hugo.deb
|
2020-03-01 00:35:10 +01:00
|
|
|
sudo dpkg -i /tmp/hugo.deb
|
|
|
|
|
|
|
|
- name: Run Hugo
|
|
|
|
working-directory: exampleSite
|
|
|
|
run: hugo --themesDir ../..
|