Skip to content

Merge pull request #20 from untalsanders/develop #8

Merge pull request #20 from untalsanders/develop

Merge pull request #20 from untalsanders/develop #8

Workflow file for this run

name: Deploy site to GitHub Pages
on:
push:
branches: ['main']
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
environment:
name: github-pages
steps:
- name: Checkout
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
run: npm run build
- name: Deploy to GitHub Pages
run: |
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
npm run deploy -- -u "Sanders Gutiérrez <[email protected]>"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}