1
mirror of https://github.com/jakejarvis/hugo-extended.git synced 2025-10-16 09:54:28 -04:00

Switch to GitHub Actions CI. (#103)

This commit is contained in:
XhmikosR
2021-06-22 07:59:13 +03:00
committed by GitHub
parent 8f5ed85597
commit f154c8f78d
3 changed files with 51 additions and 18 deletions

50
.github/workflows/ci.yml vendored Normal file
View File

@@ -0,0 +1,50 @@
name: CI
on:
- push
- pull_request
env:
FORCE_COLOR: 2
jobs:
test:
name: Node ${{ matrix.node }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node: [10, 12, 14, 16]
steps:
- name: Clone repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
- name: Install npm dependencies
run: npm ci
- name: Run tests
run: npm test
publish:
if: startsWith(github.ref, 'refs/tags/')
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 14
registry-url: 'https://registry.npmjs.org'
- name: Publish on npm
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

View File

@@ -1,17 +0,0 @@
language: node_js
node_js:
- "10"
- "12"
- "14"
- "16"
deploy:
provider: npm
email: info@fenneclab.com
api_key:
secure: q5AqVSC5C/D6+jDMsu8nP4vTh9VUzjJamYE0Y/gyG/kWjcF9hSmOdLtqhL9R8j15PySqfbBcoUN+s75KG2cJyDbhI/anrjM6p7q5ALcSGsTwBw6qh9bXomrh6j8cXI1+eYTAwk32OpcDwViCs+kP1GgtpifbSccmUzyYWl5KEQc1plM0PVuQnksUJydV0DOsJWTExufBkWBBOvbt0NTRAduAWlqJTVmepChJxa1ZJDD3Cyj49IOll8Ny4nt/oGW2rT/Ez1eYATXwPLtGzA/p94oKdEs/ubFDkh95aqYPGEAHXkt8X4o9tQ33cIl1tNiVTXWMiyZqBZDVtcKUdq5f0Gu//T/lDAoqT+bBJ/PgHJSCexJHeGR1s49sGT5EpRMWvs2H5Rh6G8eKSbfm3Nco917ux/15TcJECzO1CYh1efE0PEqAK3HerV8qJt8BSosuYo74+wea61dPmSNj7J+r+DiKkXCDkpFXT5jp9orTtniuOs65j5vAjP7zSVbUhQVALn5Kwcm1AVLvBvG6ys1dQRKoePiZuGoKpopNSFUR+ypXeYO039gTJKCyqaz3MCt9Nh1Yq1pgkal5TJeEzFuiMxg3RhAO4Ad+BD2PZJri+IAPVnXQ2SYlbRtBggNslw1E2+dZNOjkVWqRjv7ix9S6IAm8WYum5zoaa9CfremDpWc=
on:
tags: true
node: "14"
cache: npm
notifications:
email: false

View File

@@ -1,4 +1,4 @@
# hugo-bin [![npm version](https://img.shields.io/npm/v/hugo-bin.svg)](https://www.npmjs.com/package/hugo-bin) [![Build Status](https://img.shields.io/travis/fenneclab/hugo-bin/master.svg)](https://travis-ci.org/fenneclab/hugo-bin) [![dependencies Status](https://img.shields.io/david/fenneclab/hugo-bin.svg)](https://david-dm.org/fenneclab/hugo-bin) [![devDependencies Status](https://img.shields.io/david/dev/fenneclab/hugo-bin.svg)](https://david-dm.org/fenneclab/hugo-bin?type=dev)
# hugo-bin [![npm version](https://img.shields.io/npm/v/hugo-bin.svg)](https://www.npmjs.com/package/hugo-bin) [![Build Status](https://img.shields.io/github/workflow/status/fenneclab/hugo-bin/CI/master)](https://github.com/fenneclab/hugo-bin/actions?query=workflow%3ACI+branch%3Amaster) [![dependencies Status](https://img.shields.io/david/fenneclab/hugo-bin.svg)](https://david-dm.org/fenneclab/hugo-bin) [![devDependencies Status](https://img.shields.io/david/dev/fenneclab/hugo-bin.svg)](https://david-dm.org/fenneclab/hugo-bin?type=dev)
> Binary wrapper for [Hugo](https://gohugo.io/)