Skip to content

Commit f1ef25c

Browse files
committed
ci: add pipeline for gh-pages
1 parent 3544a78 commit f1ef25c

File tree

2 files changed

+32
-12
lines changed

2 files changed

+32
-12
lines changed

Diff for: .github/FUNDING.yml

-12
This file was deleted.

Diff for: .github/workflows/gh-pages.yml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Deploy Angular SPA to GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout 🛎️
16+
uses: actions/checkout@v4
17+
with:
18+
persist-credentials: false
19+
- name: Use Node.js 16.15.1
20+
uses: actions/setup-node@v1
21+
with:
22+
node-version: '16.15.1'
23+
- name: Build 🔨
24+
run: |
25+
npm install -g @angular/cli@11 --legacy-peer-deps
26+
npm install --legacy-peer-deps
27+
npm run build
28+
- name: Deploy 🚀
29+
uses: JamesIves/github-pages-deploy-action@v4
30+
with:
31+
branch: gh-pages
32+
folder: dist/client

0 commit comments

Comments
 (0)