Merge pull request #7 from emmanuel-mendez:dev #13
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy 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_TOKEN }} |