Merge pull request #86 from StefMa/fixed_hugo_version
Install specific hugo version
This commit is contained in:
@@ -7,7 +7,13 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- run:
|
- run:
|
||||||
name: Install hugo
|
name: Install hugo
|
||||||
command: apk add hugo
|
command: |
|
||||||
|
apk add wget
|
||||||
|
wget -q https://github.com/gohugoio/hugo/releases/download/v0.58.3/hugo_0.58.3_Linux-64bit.tar.gz
|
||||||
|
apk add tar
|
||||||
|
tar xzf hugo_0.58.3_Linux-64bit.tar.gz
|
||||||
|
chmod a+x hugo
|
||||||
|
mv hugo /usr/local/bin/hugo
|
||||||
|
|
||||||
- run:
|
- run:
|
||||||
name: Create site
|
name: Create site
|
||||||
@@ -81,8 +87,8 @@ jobs:
|
|||||||
command: |
|
command: |
|
||||||
apk add --update npm
|
apk add --update npm
|
||||||
npm config set unsafe-perm true
|
npm config set unsafe-perm true
|
||||||
npm install -g now@16.3.0
|
npm install -g now@16.3.1
|
||||||
- run:
|
- run:
|
||||||
name: Publish to now.sh
|
name: Publish to now.sh
|
||||||
working_directory: my-site/public
|
working_directory: my-site/public
|
||||||
command: now --target production --token ${NOW_TOKEN}
|
command: now --prod --token ${NOW_TOKEN}
|
||||||
|
|||||||
Reference in New Issue
Block a user