Setup CD using Github Actions

Now auto deployment of latest commits on master will take place.
This commit is contained in:
Sudhanshu Gautam 2019-09-27 01:22:31 +05:30 committed by GitHub
parent 018c5aa22f
commit fa5f3e68f2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

20
.github/workflows/main.yml vendored Normal file
View file

@ -0,0 +1,20 @@
name: CD using Github Actions
on:
push:
branches:
- master
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master
- name: Build and Deploy
uses: JamesIves/github-pages-deploy-action@master
env:
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
BRANCH: gh-pages
FOLDER: build
BUILD_SCRIPT: npm install && npm run build