Browse Source

use github actions

Gregg Tavares 4 years ago
parent
commit
3dd0613be1
2 changed files with 30 additions and 18 deletions
  1. 30 0
      .github/workflows/deploy-to-gh-pages.yml
  2. 0 18
      .travis.yml

+ 30 - 0
.github/workflows/deploy-to-gh-pages.yml

@@ -0,0 +1,30 @@
+name: Build and Deploy
+on:
+  push:
+    branches:
+      - master
+jobs:
+  build-and-deploy:
+    runs-on: ubuntu-latest
+    steps:
+      - name: Checkout 🍔🍟🥤
+        uses: actions/[email protected]
+        with:
+          persist-credentials: false
+
+      - name: Use Node.js 😂
+        uses: actions/setup-node@v1
+        with:
+          node-version: '14.x'
+
+      - name: Install and Build 🏭
+        run: |
+          npm ci
+          npm run build-ci
+
+      - name: Deploy 📦
+        uses: JamesIves/[email protected]
+        with:
+          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+          BRANCH: gh-pages
+          FOLDER: out

+ 0 - 18
.travis.yml

@@ -1,18 +0,0 @@
-language: node_js
-node_js:
-  - "12.16.2"
-script:
-  - npm run build-ci
-env:
-  global:
-    - COMMIT_AUTHOR_EMAIL: "[email protected]"
-
-deploy:
-  provider: pages
-  skip-cleanup: true
-  github-token: $GITHUB_TOKEN  # Set in the settings page of your repository, as a secure variable
-  keep-history: true
-  local-dir: out
-  on:
-    branch: master
-