Skip to content

Commit

Permalink
Update gh-pages deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
scottgriv committed Feb 11, 2024
1 parent d0dd6a2 commit c735047
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Build and Deploy

on:
push:
branches:
- main
workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write

jobs:
build-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '18'

- name: Install Dependencies
run: npm install

- name: Build
run: npm run build -- --output-path=dist/angular-github_user_info # Adjust based on your Angular project name

- name: Setup Pages
uses: actions/configure-pages@v4

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: dist/angular-github_user_info # Make sure this matches your Angular build output path

- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v4

0 comments on commit c735047

Please sign in to comment.