Skip to content

Commit

Permalink
ci: add pipeline for gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Helias committed Apr 17, 2024
1 parent 3544a78 commit f1ef25c
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 12 deletions.
12 changes: 0 additions & 12 deletions .github/FUNDING.yml

This file was deleted.

32 changes: 32 additions & 0 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Deploy Angular SPA to GitHub Pages

on:
push:
branches:
- master

permissions:
contents: write

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Use Node.js 16.15.1
uses: actions/setup-node@v1
with:
node-version: '16.15.1'
- name: Build 🔨
run: |
npm install -g @angular/cli@11 --legacy-peer-deps
npm install --legacy-peer-deps
npm run build
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: dist/client

0 comments on commit f1ef25c

Please sign in to comment.