-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (29 loc) Β· 851 Bytes
/
nodejs.yml
File metadata and controls
35 lines (29 loc) Β· 851 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Github Pages
on:
push:
branches:
- development
jobs:
build-and-deploy:
runs-on: ubuntu-latest
environment: github-pages
steps:
- name: Checkout ποΈ
uses: actions/checkout@v3
- name: Use Node.js 16
uses: actions/setup-node@master
with:
node-version: 16
# The build script the action should run prior to deploying.
- name: Build Production React.js page π§
run: |
npm install
npm run-script build
env:
CI: false
- name: Deploy to Github Pages π
uses: JamesIves/github-pages-deploy-action@v4.4.1
with:
branch: master # The branch the action should deploy to.
folder: build # The folder the action should deploy.
clean: true