Skip to content

Update workflow for vtnphan.github.io #2

Update workflow for vtnphan.github.io

Update workflow for vtnphan.github.io #2

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches: [ master ]
workflow_dispatch:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: portfolio/package-lock.json
- name: Install dependencies
run: |
cd portfolio
npm ci
- name: Build Angular app
run: |
cd portfolio
npm run build:prod
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./portfolio/dist/portfolio/browser