-
Notifications
You must be signed in to change notification settings - Fork 10
58 lines (50 loc) · 1.44 KB
/
deploy.yml
File metadata and controls
58 lines (50 loc) · 1.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Deploy Angular SPA to GitHub Pages
on:
push:
branches:
- master
- development
pull_request:
branches:
- development
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Use Node.js 24.13.0
uses: actions/setup-node@v1
with:
node-version: '24.13.0'
- name: Build Master 🔨
if: github.ref == 'refs/heads/master'
run: |
npm install -g @angular/cli@10 --legacy-peer-deps
npm install --legacy-peer-deps
ng build --prod --base-href=""
- name: Build Development 🔨
if: github.ref == 'refs/heads/development'
run: |
npm install -g @angular/cli@21
npm install
ng build --prod --base-href="/development/"
- name: Deploy Master to Root 🚀
if: github.ref == 'refs/heads/master'
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: dist/opis-manager
clean: false
- name: Deploy Development to /development 🚀
if: github.ref == 'refs/heads/development'
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: dist/opis-manager
target-folder: development
clean: false