Skip to content

Deploy to GitHub Pages #317

Deploy to GitHub Pages

Deploy to GitHub Pages #317

name: Deploy to GitHub Pages
on:
workflow_run:
workflows: ['CI']
branches: [main]
types:
- completed
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.node-version'
- name: Deploy
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
run: |
npm ci
npm run ng deploy --base-href=/angular-architecture/ --name=${{ secrets.GH_USER_NAME }} --email=${{ secrets.GH_EMAIL }}