From 36ff16f058c58d133564dd8b1aa8c293a10824d8 Mon Sep 17 00:00:00 2001 From: Seth Bertalotto Date: Sun, 4 Jul 2021 09:54:22 -0700 Subject: [PATCH] ci: add deploy workflow (#860) --- .github/workflows/deploy.yml | 20 ++++++++++++++++++++ .travis.yml | 11 ----------- package.json | 1 + 3 files changed, 21 insertions(+), 11 deletions(-) create mode 100644 .github/workflows/deploy.yml delete mode 100644 .travis.yml 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",