diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..d09bdc9 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -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 diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 6e1db8f..0000000 --- a/.travis.yml +++ /dev/null @@ -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 \ No newline at end of file diff --git a/package.json b/package.json index 2d860bd..667a19c 100644 --- a/package.json +++ b/package.json @@ -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",