Skip to content

Instantly share code, notes, and snippets.

@Karnak19
Created September 5, 2020 18:46
Show Gist options
  • Save Karnak19/0e643f46dd613b9e5af608d2d299d71a to your computer and use it in GitHub Desktop.
Save Karnak19/0e643f46dd613b9e5af608d2d299d71a to your computer and use it in GitHub Desktop.
Build & deploy Github workflow
name: Build and Deploy
on:
push:
branches:
- master
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Build and Deploy
uses: JamesIves/github-pages-deploy-action@master
env:
ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: production
FOLDER: dist
BUILD_SCRIPT: npm install && npm run build
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment