Skip to content

cicd deploy

cicd deploy #421

Workflow file for this run

name: Build and Deploy
on:
push:
branches:
- master
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2.3.4
- uses: actions/setup-node@v2
with:
node-version: "18.x"
registry-url: "https://registry.npmjs.org"
- name: Install and Build 🔧 # Install
run: |
npm install
- name: Install and Build 🔧 # Build
run: |
npm run build
- name: Install and Build 🔧 # Test
run: |
npm run test
- name: Deploy 🚀 # Deploy to gh-pages branch
uses: JamesIves/github-pages-deploy-action@4.1.5
with:
branch: gh-pages # The branch the action should deploy to.
folder: dist # The folder the action should deploy.