Skip to content

CI + despliegue en GitHub pages #1

CI + despliegue en GitHub pages

CI + despliegue en GitHub pages #1

Workflow file for this run

name: Deploy
on: [push]
permissions:
contents: read
pages: write
jobs:
build:
name: Build & Test
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: npm
- name: Install dependencies
run: npm ci
- name: Build project
run: npm run build
- name: Upload pages artifact
if: github.ref == 'refs/heads/main'
uses: actions/upload-pages-artifact@v3
with:
path: ./dist
- name: Deploy to GitHub Pages
if: github.ref == 'refs/heads/main'
id: deployment
uses: actions/deploy-pages@v4