Skip to content

Commit b15a43b

Browse files
Feature/GitHub pages url (#5)
* Added base href * added deploy script
1 parent a0ec85c commit b15a43b

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/deploy.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ name: Deploy
22

33
on:
44
push:
5-
branches: [ master ]
5+
branches:
6+
- master
7+
- feature/deploy-github-workflow
68

79
jobs:
810
build:
@@ -30,7 +32,7 @@ jobs:
3032
- name: Install and Build
3133
run: |
3234
npm install
33-
ng build --prod --base-href 'https://chapi-chapi.github.io/angular-component-library/'
35+
npm run deploy:github-pages
3436
3537
- name: Deploy 🚀
3638
uses: JamesIves/github-pages-deploy-action@releases/v3

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"lint": "ng lint",
1717
"e2e": "ng e2e",
1818
"build:ci": "npm run clean && npm run test && npm run build:prod",
19+
"deploy:github-pages": "ng build --prod --base-href 'https://chapi-chapi.github.io/angular-component-library/'",
1920
"start:proxy:mock:server": "concurrently --kill-others \"npm run mock:server\" \"npm run start:proxy\"",
2021
"package:mock-api": "ng-packagr -p ./src/app/shared/interceptors/mock-api/package.json",
2122
"package:publish:mock-api": "npm publish ./dist/packages/@chapichapi/mock-api --access public"

0 commit comments

Comments
 (0)