Deshabilitar jekyll #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Deploy | ||
on: | ||
push: | ||
branches: | ||
-main | ||
jobs: | ||
build-and-deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Install frontend packages | ||
working-directory: ./frontend | ||
run: npm ci | ||
- name: Build frontend | ||
working-directory: ./frontend | ||
npm run build | ||
- name: Disable Jekyll | ||
run: echo "" > ./frontend/dist/.nojekyll | ||
- name: Deploy frontend | ||
uses: JamesIves/github-pages-deploy-action@v4 | ||
with: | ||
branch: main | ||
folder: frontend/dist | ||
clean: true | ||
- name: Install backend packages | ||
working-directory: ./backend | ||
run: npm ci |