Skip to content

Commit

Permalink
Switch to GitHub Actions for deploys
Browse files Browse the repository at this point in the history
  • Loading branch information
romannurik committed Oct 14, 2020
1 parent 23423b5 commit 6d559ab
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 19 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Node Build and Deploy

on:
push:
branches:
- master

jobs:
build-and-deploy:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [8.x]

steps:
- uses: actions/checkout@v1

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

- name: npm install and build
run: |
npm ci
npm run build --if-present
env:
CI: true

- name: Deploy to gh-pages
uses: JamesIves/github-pages-deploy-action@master
env:
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
BASE_BRANCH: master # The branch the action should deploy from.
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: dist # The folder the action should deploy.
#BUILD_SCRIPT: npm install && npm run-script build # The build script the action should run prior to deploying.
19 changes: 0 additions & 19 deletions .travis.yml

This file was deleted.

0 comments on commit 6d559ab

Please sign in to comment.