mirror of
https://github.com/pure-css/pure
synced 2024-12-25 05:23:43 +01:00
ci: add deploy workflow (#860)
This commit is contained in:
parent
30ffcf1412
commit
36ff16f058
20
.github/workflows/deploy.yml
vendored
Normal file
20
.github/workflows/deploy.yml
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
name: Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [master]
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Use Node.js
|
||||
uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 14.x
|
||||
- run: npm ci
|
||||
- run: npm run lint
|
||||
- run: npm test
|
||||
- run: npm run deploy
|
11
.travis.yml
11
.travis.yml
@ -1,11 +0,0 @@
|
||||
language: node_js
|
||||
node_js:
|
||||
- 12
|
||||
script:
|
||||
- npm t
|
||||
deploy:
|
||||
provider: script
|
||||
skip_cleanup: true
|
||||
script: scripts/deploy.sh
|
||||
on:
|
||||
branch: master
|
@ -6,6 +6,7 @@
|
||||
"url": "git://github.com/pure-css/pure.git"
|
||||
},
|
||||
"scripts": {
|
||||
"deploy": "./scripts/deploy.sh",
|
||||
"lint": "eslint . --ext .js",
|
||||
"prepare": "grunt release",
|
||||
"site:build": "npm run pretest && cd site && npm install && npm run build",
|
||||
|
Loading…
Reference in New Issue
Block a user