Commit f1259bc7 authored by BJ Hargrave's avatar BJ Hargrave 🚴
Browse files

Add GitHub Actions CI build



The replaces travis and enables CI builds on forks!
Signed-off-by: BJ Hargrave's avatarBJ Hargrave <hargrave@us.ibm.com>
parent 0f171e65
# GitHub Dependabot configuration file
version: 2
updates:
# Maintain dependencies for GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
# Maintain dependencies for npm
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "daily"
#!/usr/bin/env bash
node --version
npm -version
hugo version
npm ci
hugo --gc --minify --buildFuture
name: Build
on:
push:
branches-ignore:
- 'dependabot/**'
pull_request:
env:
LC_ALL: en_US.UTF-8
defaults:
run:
shell: bash
jobs:
hugo:
name: Hugo
runs-on: ubuntu-latest
steps:
- name: Git Checkout
uses: actions/checkout@v2
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: '12'
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: 'latest'
extended: true
- name: Build
run: |
./.github/scripts/build.sh
language: node_js
node_js:
- "12"
install:
- npm ci
- wget https://github.com/gohugoio/hugo/releases/download/v0.76.5/hugo_0.76.5_Linux-64bit.deb
- sudo dpkg -i hugo*.deb
script:
- hugo --gc --minify --buildFuture
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment