2021-04-22 11:40:19 +00:00
|
|
|
name: Webchat Deploy GH Pages
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- 'main'
|
|
|
|
|
|
|
|
jobs:
|
2021-04-22 22:47:23 +00:00
|
|
|
deploy_gh_pages:
|
2021-04-22 11:40:19 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
|
|
|
|
- name: Checkout code
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Install NodeJS
|
|
|
|
uses: actions/setup-node@v2
|
|
|
|
with:
|
|
|
|
node-version: '14'
|
|
|
|
|
|
|
|
- name: Cache npm cache
|
|
|
|
uses: actions/cache@v2
|
|
|
|
with:
|
|
|
|
path: ~/.npm
|
|
|
|
key: node-v1-${{ hashFiles('**/package-lock.json') }}
|
|
|
|
|
2021-04-22 22:46:07 +00:00
|
|
|
- name: "[js-waku] install using npm ci"
|
|
|
|
uses: bahmutov/npm-install@v1
|
|
|
|
|
|
|
|
- name: "[js-waku] build"
|
|
|
|
run: npm run build
|
|
|
|
|
|
|
|
- name: install using npm i
|
|
|
|
run: npm install
|
|
|
|
working-directory: web-chat
|
|
|
|
|
2021-04-22 11:40:19 +00:00
|
|
|
- name: Deploy web chat app on gh pages
|
|
|
|
run: npm run deploy
|
|
|
|
working-directory: web-chat
|