Update deploy.yml

This commit is contained in:
Santiago Lo Coco 2024-04-23 17:24:49 +02:00
parent cc127bd373
commit 5ecc5de9a6
1 changed files with 10 additions and 6 deletions

View File

@ -1,4 +1,7 @@
name: Deploy to GitHub Pages name: Build and deploy
permissions:
contents: write
on: on:
push: push:
@ -6,18 +9,19 @@ on:
workflow_dispatch: workflow_dispatch:
jobs: jobs:
build: build-and-deploy:
concurrency: ci-${{ github.ref }}
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - name: Checkout
uses: actions/checkout@v4
- name: Install and Build - name: Install and Build
run: | run: |
npm install npm install
npm run build npm run build
- name: Deploy to GitHub Pages - name: Deploy
uses: JamesIves/github-pages-deploy-action@latest uses: JamesIves/github-pages-deploy-action@v4
with: with:
branch: gh-pages
folder: public folder: public