Skip to content

Merge pull request #364 from abenteuerzeit/dependabot/npm_and_yarn/te… #86

Merge pull request #364 from abenteuerzeit/dependabot/npm_and_yarn/te…

Merge pull request #364 from abenteuerzeit/dependabot/npm_and_yarn/te… #86

name: Deploy to GitHub Pages
on:
push:
branches:
- development
paths:
- 'tenant_frontend/**'
jobs:
build-and-deploy:
runs-on: ubuntu-latest
defaults:
run:
working-directory: tenant_frontend
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '14'
- name: Cache Node.js modules
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.OS }}-node-
${{ runner.OS }}-
- name: Update package-lock.json
run: |
rm -rf node_modules package-lock.json
npm install
- name: Install Dependencies
run: npm ci
- name: Build
run: npm run build
- name: List contents after build
run: ls -la
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@4.1.5
with:
branch: gh-pages
folder: tenant_frontend/build
clean: true