Skip to content

Commit

Permalink
feat: add hugo-installer + auto-changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
h-enk committed Jun 24, 2021
1 parent 63786ab commit 93f7598
Show file tree
Hide file tree
Showing 12 changed files with 1,667 additions and 10,645 deletions.
38 changes: 12 additions & 26 deletions .github/workflows/node.js-ci.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
# Test and build your Hyas project
# For more information see: https://henkverlinde.com/continuous-integration-workflow-for-your-hyas-project/

name: Hyas CI

on:
push:
branches: [master]
branches: master
pull_request:
branches: [master]
branches: master

jobs:
build:
Expand All @@ -16,33 +13,22 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
node-version: [14.x, 15.x]
node: [14.x, 16.x]

steps:
- uses: actions/checkout@v2

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Check out Hyas project
uses: actions/checkout@v2

- name: Install Hugo
uses: peaceiris/actions-hugo@v2
- name: Set up Node.js ${{ matrix.node }}
uses: actions/setup-node@v2
with:
hugo-version: 'latest'
extended: true

- name: Check install Hugo
run: hugo version
node-version: ${{ matrix.node }}

- name: Install dependencies
run: npm ci
- name: Check for linting errors

- name: Run Hyas test script
run: npm test

- name: Delete temporary directories
run: npm run clean


- name: Build production website
run: npm run build
run: npm run build
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
functions
bin
node_modules
public
resources
# Local Netlify folder
.netlify
.netlify
TODO
1 change: 0 additions & 1 deletion .npmrc

This file was deleted.

27 changes: 0 additions & 27 deletions .versionrc.json

This file was deleted.

8 changes: 6 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Changelog
### Changelog

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.
All notable changes to this project will be documented in this file. Dates are displayed in UTC.

Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).

<!-- auto-changelog-above -->

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

Expand Down
Empty file removed assets/lambda/.gitignore
Empty file.
4 changes: 0 additions & 4 deletions data/doks.json

This file was deleted.

4 changes: 0 additions & 4 deletions data/hyas.json

This file was deleted.

File renamed without changes.
14 changes: 7 additions & 7 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,27 @@
functions = "functions"

[build.environment]
NODE_VERSION = "15.5.1"
NPM_VERSION = "7.3.0"
NODE_VERSION = "16.3.0"
NPM_VERSION = "7.16.0"

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

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

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

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

[context.next.environment]
HUGO_ENV = "next"

[dev]
framework = "#custom"
command = "npx rimraf public resources functions && npx hugo server --bind=0.0.0.0 --disableFastRender"
command = "shx rm -rf public resources && exec-bin bin/hugo/hugo server --bind=0.0.0.0 --disableFastRender"
targetPort = 1313
port = 8888
publish = "public"
Expand Down
Loading

0 comments on commit 93f7598

Please sign in to comment.