Node Continuous Integration #1
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: Node Continuous Integration | |
on: | |
pull_request: | |
branches: [ main ] | |
create: | |
jobs: | |
# Build job | |
build: | |
# <Not provided for brevity> | |
# At a minimum this job should upload artifacts using actions/upload-pages-artifact | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- name: Get repository name | |
id: repo-name | |
uses: MariachiBear/[email protected] | |
with: | |
with-owner: 'false' | |
string-case: 'lowercase' | |
- name: Install and build | |
env: | |
REPO_NAME: ${{ steps.repo-name.outputs.repository-name }} | |
run: | | |
cd client | |
npm install | |
npm run build | |
# Publish the site | |
- name: Deploy 🚀 | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
folder: client/dist |