Skip to content

Commit

Permalink
CI + despliegue en GitHub pages
Browse files Browse the repository at this point in the history
  • Loading branch information
JavierGelatti committed Nov 22, 2024
1 parent 4ae94f5 commit 6fd9f0e
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
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

0 comments on commit 6fd9f0e

Please sign in to comment.