1
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:
Seth Bertalotto 2021-07-04 09:54:22 -07:00 committed by GitHub
parent 30ffcf1412
commit 36ff16f058
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 21 additions and 11 deletions

20
.github/workflows/deploy.yml vendored Normal file
View 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

View File

@ -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

View File

@ -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",