Skip to content
This repository was archived by the owner on Jun 18, 2023. It is now read-only.

Commit ee601db

Browse files
timonbackstavshamir
authored andcommitted
feat: Set relative path for springwolf-ui gh pages deployment
springwolf-ui is deployed under the springwolf-ui/ path, like https://springwolf.github.io/springwolf-ui/
1 parent 7b2ba74 commit ee601db

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ jobs:
2626

2727
- name: Build gh-pages
2828
if: github.ref == 'refs/heads/master'
29-
run: ./gradlew npm_run_build-dev
30-
- name: Create index.html
31-
if: github.ref == 'refs/heads/master'
32-
run: cp dist/springwolf-ui/asyncapi-ui.html dist/springwolf-ui/index.html
29+
run: |
30+
./gradlew npmInstall
31+
npx ng build --base-href=./
32+
cp dist/springwolf-ui/asyncapi-ui.html dist/springwolf-ui/index.html
3333
- name: Deploy to gh pages 🚀
3434
if: github.ref == 'refs/heads/master'
3535
uses: JamesIves/github-pages-deploy-action@v4

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
"ng": "ng",
66
"start": "ng serve",
77
"build": "ng build --prod --base-href=./",
8-
"build-dev": "ng build --base-href=./",
98
"test": "ng test",
109
"lint": "ng lint",
1110
"e2e": "ng e2e",

src/_redirects

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
11
# Redirects from what the browser requests to what we serve
2-
/ /asyncapi-ui.html
2+
# Usage with netlify for dev build with mock data:
3+
# Build command: ng build --base-href=/springwolf-ui/ && mv dist/springwolf-ui/_redirects dist/_redirects
4+
# Publish directory: dist/
5+
6+
/ /springwolf-ui/asyncapi-ui.html
7+
/springwolf-ui /springwolf-ui/asyncapi-ui.html

0 commit comments

Comments
 (0)