Skip to content

Commit 93f7598

Browse files
committed
feat: add hugo-installer + auto-changelog
1 parent 63786ab commit 93f7598

File tree

12 files changed

+1667
-10645
lines changed

12 files changed

+1667
-10645
lines changed

.github/workflows/node.js-ci.yml

+12-26
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
1-
# Test and build your Hyas project
2-
# For more information see: https://henkverlinde.com/continuous-integration-workflow-for-your-hyas-project/
3-
41
name: Hyas CI
52

63
on:
74
push:
8-
branches: [master]
5+
branches: master
96
pull_request:
10-
branches: [master]
7+
branches: master
118

129
jobs:
1310
build:
@@ -16,33 +13,22 @@ jobs:
1613
strategy:
1714
matrix:
1815
os: [ubuntu-latest, windows-latest, macos-latest]
19-
node-version: [14.x, 15.x]
16+
node: [14.x, 16.x]
2017

2118
steps:
22-
- uses: actions/checkout@v2
23-
24-
- name: Use Node.js ${{ matrix.node-version }}
25-
uses: actions/setup-node@v1
26-
with:
27-
node-version: ${{ matrix.node-version }}
19+
- name: Check out Hyas project
20+
uses: actions/checkout@v2
2821

29-
- name: Install Hugo
30-
uses: peaceiris/actions-hugo@v2
22+
- name: Set up Node.js ${{ matrix.node }}
23+
uses: actions/setup-node@v2
3124
with:
32-
hugo-version: 'latest'
33-
extended: true
34-
35-
- name: Check install Hugo
36-
run: hugo version
25+
node-version: ${{ matrix.node }}
3726

3827
- name: Install dependencies
3928
run: npm ci
40-
41-
- name: Check for linting errors
29+
30+
- name: Run Hyas test script
4231
run: npm test
43-
44-
- name: Delete temporary directories
45-
run: npm run clean
46-
32+
4733
- name: Build production website
48-
run: npm run build
34+
run: npm run build

.gitignore

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
functions
1+
bin
22
node_modules
33
public
44
resources
55
# Local Netlify folder
6-
.netlify
6+
.netlify
7+
TODO

.npmrc

-1
This file was deleted.

.versionrc.json

-27
This file was deleted.

CHANGELOG.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1-
# Changelog
1+
### Changelog
22

3-
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
3+
All notable changes to this project will be documented in this file. Dates are displayed in UTC.
4+
5+
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
6+
7+
<!-- auto-changelog-above -->
48

59
### [0.2.3](https://github.com/h-enk/doks/compare/v0.2.2...v0.2.3) (2021-04-02)
610

assets/lambda/.gitignore

Whitespace-only changes.

data/doks.json

-4
This file was deleted.

data/hyas.json

-4
This file was deleted.
File renamed without changes.

netlify.toml

+7-7
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,27 @@
33
functions = "functions"
44

55
[build.environment]
6-
NODE_VERSION = "15.5.1"
7-
NPM_VERSION = "7.3.0"
6+
NODE_VERSION = "16.3.0"
7+
NPM_VERSION = "7.16.0"
88

99
[context.production]
10-
command = "npx hugo --gc --minify && npx netlify-lambda build assets/lambda"
10+
command = "exec-bin bin/hugo/hugo --gc --minify"
1111

1212
[context.deploy-preview]
13-
command = "npx hugo --gc --minify -b $DEPLOY_PRIME_URL"
13+
command = "exec-bin bin/hugo/hugo --gc --minify -b $DEPLOY_PRIME_URL"
1414

1515
[context.branch-deploy]
16-
command = "npx hugo --gc --minify -b $DEPLOY_PRIME_URL"
16+
command = "exec-bin bin/hugo/hugo --gc --minify -b $DEPLOY_PRIME_URL"
1717

1818
[context.next]
19-
command = "npx hugo --gc --minify && npx netlify-lambda build assets/lambda"
19+
command = "exec-bin bin/hugo/hugo --gc --minify"
2020

2121
[context.next.environment]
2222
HUGO_ENV = "next"
2323

2424
[dev]
2525
framework = "#custom"
26-
command = "npx rimraf public resources functions && npx hugo server --bind=0.0.0.0 --disableFastRender"
26+
command = "shx rm -rf public resources && exec-bin bin/hugo/hugo server --bind=0.0.0.0 --disableFastRender"
2727
targetPort = 1313
2828
port = 8888
2929
publish = "public"

0 commit comments

Comments
 (0)