Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/devcows/hugo-universal-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillermo Guerrero Ibarra <wolf.fox1985@gmail.com>2021-07-31 17:37:30 +0300
committerGitHub <noreply@github.com>2021-07-31 17:37:30 +0300
commitc95b4517c37b2dd23cb351204815c40769832da4 (patch)
tree39467ffc7890f1ed08822da56faa681ddf4c1c32 /.github
parent5842278182875c330c809a816fab14e5e5731e29 (diff)
Migrate Travis to Github actions (#298)1.1.3
* Rename and build. * Linter. * Added other linters. * refactors and slack hook. * Update readme. Co-authored-by: Guillermo Guerrero Ibarra <guillermo.guerrero@deliveroo.co.uk>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build.yml23
-rw-r--r--.github/workflows/deploy-gh-pages.yml (renamed from .github/workflows/main.yml)4
-rw-r--r--.github/workflows/linters.yml26
-rw-r--r--.github/workflows/slack-notify.yml12
4 files changed, 62 insertions, 3 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
new file mode 100644
index 0000000..2ee6833
--- /dev/null
+++ b/.github/workflows/build.yml
@@ -0,0 +1,23 @@
+name: Build project with Hugo
+on: push
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ defaults:
+ run:
+ working-directory: ./exampleSite
+ steps:
+ - uses: actions/checkout@v2
+ with:
+ submodules: true # Fetch Hugo themes (true OR recursive)
+ fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
+
+ - name: Setup Hugo
+ uses: peaceiris/actions-hugo@v2
+ with:
+ hugo-version: 'latest'
+ extended: true
+
+ - name: Build
+ run: |
+ hugo --minify
diff --git a/.github/workflows/main.yml b/.github/workflows/deploy-gh-pages.yml
index 24cc9e6..92b274e 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/deploy-gh-pages.yml
@@ -1,10 +1,8 @@
-name: github pages
-
+name: Deploy Github pages
on:
push:
branches:
- master # Set a branch to deploy
-
jobs:
deploy:
runs-on: ubuntu-latest
diff --git a/.github/workflows/linters.yml b/.github/workflows/linters.yml
new file mode 100644
index 0000000..16627bd
--- /dev/null
+++ b/.github/workflows/linters.yml
@@ -0,0 +1,26 @@
+name: Linters
+on: push
+jobs:
+ linters:
+ name: Run linters
+ runs-on: ubuntu-latest
+
+ steps:
+ - name: Check out Git repository
+ uses: actions/checkout@v2
+
+ - name: Set up Node.js
+ uses: actions/setup-node@v1
+ with:
+ node-version: 12
+
+ # ESLint and Prettier must be in `package.json`
+ - name: Install Node.js dependencies
+ run: npm ci
+
+ - name: Run linters
+ uses: wearerequired/lint-action@v1
+ with:
+ eslint: true
+ prettier: false
+ stylelint: false
diff --git a/.github/workflows/slack-notify.yml b/.github/workflows/slack-notify.yml
new file mode 100644
index 0000000..f6aaa22
--- /dev/null
+++ b/.github/workflows/slack-notify.yml
@@ -0,0 +1,12 @@
+name: Slack Notification
+on: push
+jobs:
+ slackNotification:
+ name: Slack Notification
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ - name: Slack Notification
+ uses: rtCamp/action-slack-notify@v2
+ env:
+ SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} \ No newline at end of file