ci: update the build command of github actions #162
This file contains 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: GitHub Actions Build and Deploy | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
with: | |
persist-credentials: false | |
- name: Install and Build | |
run: | | |
npm ci | |
npm run build | |
- name: Deploy | |
uses: JamesIves/[email protected] | |
with: | |
GITHUB_TOKEN: ${{ secrets.VISUAL_DRAG_DEMO }} | |
BRANCH: master | |
FOLDER: dist | |
CLEAN: true | |
REPOSITORY_NAME: woai3c/woai3c.github.io | |
TARGET_FOLDER: visual-drag-demo |