From 8b4caeaa3fcba3adb98efc01adf7fd881c2c3d2c Mon Sep 17 00:00:00 2001 From: Franck Royer Date: Thu, 22 Apr 2021 21:40:19 +1000 Subject: [PATCH] Automatically deploy latest main on gh pages --- .github/workflows/deploy-gh-pages.yml | 29 +++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/deploy-gh-pages.yml diff --git a/.github/workflows/deploy-gh-pages.yml b/.github/workflows/deploy-gh-pages.yml new file mode 100644 index 0000000000..8d0fd32f4d --- /dev/null +++ b/.github/workflows/deploy-gh-pages.yml @@ -0,0 +1,29 @@ +name: Webchat Deploy GH Pages + +on: + push: + branches: + - 'main' + +jobs: + build_and_test: + 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') }} + + - name: Deploy web chat app on gh pages + run: npm run deploy + working-directory: web-chat