Skip to content

Instantly share code, notes, and snippets.

@sshyam-gupta
Last active December 24, 2019 10:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sshyam-gupta/74f016ddc5deb9029f94c4b8daf04c56 to your computer and use it in GitHub Desktop.
Save sshyam-gupta/74f016ddc5deb9029f94c4b8daf04c56 to your computer and use it in GitHub Desktop.
name: Continous Integration
on: push
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10.x]
steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
fetch-depth: 1
- name: yarn install, build
run: |
yarn
yarn build
name: Build and Deploy
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Clean Install dependencies and Build
run: |
yarn install
rm -rf build
yarn build
name: Build and Deploy
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Clean Install dependencies and Build
run: |
yarn install
rm -rf build
yarn build
- name: Deploy
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
BRANCH: gh-pages
FOLDER: 'build'
- name: Archive production artifacts
uses: actions/upload-artifact@v1
with:
name: build
path: build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment