Skip to content

Commit c95b451

Browse files
Migrate Travis to Github actions (#298)
* Rename and build. * Linter. * Added other linters. * refactors and slack hook. * Update readme. Co-authored-by: Guillermo Guerrero Ibarra <guillermo.guerrero@deliveroo.co.uk>
1 parent 5842278 commit c95b451

File tree

10 files changed

+2249
-79
lines changed

10 files changed

+2249
-79
lines changed

.github/workflows/build.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Build project with Hugo
2+
on: push
3+
jobs:
4+
build:
5+
runs-on: ubuntu-latest
6+
defaults:
7+
run:
8+
working-directory: ./exampleSite
9+
steps:
10+
- uses: actions/checkout@v2
11+
with:
12+
submodules: true # Fetch Hugo themes (true OR recursive)
13+
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
14+
15+
- name: Setup Hugo
16+
uses: peaceiris/actions-hugo@v2
17+
with:
18+
hugo-version: 'latest'
19+
extended: true
20+
21+
- name: Build
22+
run: |
23+
hugo --minify
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
name: github pages
2-
1+
name: Deploy Github pages
32
on:
43
push:
54
branches:
65
- master # Set a branch to deploy
7-
86
jobs:
97
deploy:
108
runs-on: ubuntu-latest

.github/workflows/linters.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Linters
2+
on: push
3+
jobs:
4+
linters:
5+
name: Run linters
6+
runs-on: ubuntu-latest
7+
8+
steps:
9+
- name: Check out Git repository
10+
uses: actions/checkout@v2
11+
12+
- name: Set up Node.js
13+
uses: actions/setup-node@v1
14+
with:
15+
node-version: 12
16+
17+
# ESLint and Prettier must be in `package.json`
18+
- name: Install Node.js dependencies
19+
run: npm ci
20+
21+
- name: Run linters
22+
uses: wearerequired/lint-action@v1
23+
with:
24+
eslint: true
25+
prettier: false
26+
stylelint: false

.github/workflows/slack-notify.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: Slack Notification
2+
on: push
3+
jobs:
4+
slackNotification:
5+
name: Slack Notification
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v2
9+
- name: Slack Notification
10+
uses: rtCamp/action-slack-notify@v2
11+
env:
12+
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}

.prettierrc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

.stylelintrc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "stylelint-config-standard"
3+
}

.travis.yml

Lines changed: 0 additions & 20 deletions
This file was deleted.

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
# Universal Theme for Hugo
22

3-
[![Build Status](https://travis-ci.org/devcows/hugo-universal-theme.svg?branch=master)](https://travis-ci.org/devcows/hugo-universal-theme)
43
[![Code Climate](https://codeclimate.com/github/devcows/hugo-universal-theme/badges/gpa.svg)](https://codeclimate.com/github/devcows/hugo-universal-theme)
54

65
Universal is a clean and stylish website template built with Bootstrap. It stands out with its clean design and elegant typography.
76

7+
Demo site: <a href="https://devcows.github.io/hugo-universal-theme/" target="_blank">https://devcows.github.io/hugo-universal-theme</a>
8+
89
This Hugo theme was ported from [Bootstrapious](http://bootstrapious.com/p/universal-business-e-commerce-template) for training and fun. It has a very nice and customizable landing page, a comments system by Disqus, site search by Google, contact forms by Formspree, Google Analytics, and optional widgets for the sidebar.
910

1011
![screenshot](https://raw.githubusercontent.com/devcows/hugo-universal-theme/master/images/screenshot.png)

0 commit comments

Comments
 (0)