You've already forked hugo-extended
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:
50
.github/workflows/ci.yml
vendored
Normal file
50
.github/workflows/ci.yml
vendored
Normal 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 }}
|
17
.travis.yml
17
.travis.yml
@@ -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
|
@@ -1,4 +1,4 @@
|
||||
# hugo-bin [](https://www.npmjs.com/package/hugo-bin) [](https://travis-ci.org/fenneclab/hugo-bin) [](https://david-dm.org/fenneclab/hugo-bin) [](https://david-dm.org/fenneclab/hugo-bin?type=dev)
|
||||
# hugo-bin [](https://www.npmjs.com/package/hugo-bin) [](https://github.com/fenneclab/hugo-bin/actions?query=workflow%3ACI+branch%3Amaster) [](https://david-dm.org/fenneclab/hugo-bin) [](https://david-dm.org/fenneclab/hugo-bin?type=dev)
|
||||
|
||||
> Binary wrapper for [Hugo](https://gohugo.io/)
|
||||
|
||||
|
Reference in New Issue
Block a user