Skip to content

Update deploy.yml

Update deploy.yml #7

Workflow file for this run

name: Deploy Angular to GitHub Pages
on:
push:
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '22'
- name: Install dependencies
run: npm install
- name: Build Angular project
run: npm run build -- --base-href=/emmanuel-mendez.github.io/
- name: Deploy to GitHub Pages
run: npx ng deploy --repo=https://github.com/emmanuel-mendez/emmanuel-mendez.github.io.git --name=emmanuel-mendez --email=emmanuel-mendez.dev@outlook.com
env:
GITHUB_TOKEN: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}