Created
September 5, 2020 18:46
-
-
Save Karnak19/0e643f46dd613b9e5af608d2d299d71a to your computer and use it in GitHub Desktop.
Build & deploy Github workflow
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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