Skip to content

Merge pull request #1934 from caiocampos/dependabot/npm_and_yarn/back… #890

Merge pull request #1934 from caiocampos/dependabot/npm_and_yarn/back…

Merge pull request #1934 from caiocampos/dependabot/npm_and_yarn/back… #890

Workflow file for this run

name: Deploy Back-end
on:
push:
branches: [ master ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- name: Checkout
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install
working-directory: ./back
run: npm install
- name: Build
working-directory: ./back
run: npm run build:full --if-present
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: dist
folder: back/dist