@@ -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
+ node-version: '14.x'
+ - name: Install and Build 🏭
+ run: |
+ npm ci
+ npm run build-ci
+ - name: Deploy 📦
+ uses: JamesIves/[email protected]
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ BRANCH: gh-pages
+ FOLDER: out
@@ -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