Skip to content

Commit 407e86d

Browse files
authored
Merge pull request #35 from design4pro/develop
fix(angular-jss): gh-pages deploy fix
2 parents 3227352 + a3a7b36 commit 407e86d

File tree

2 files changed

+10
-11
lines changed

2 files changed

+10
-11
lines changed

.github/workflows/gh-pages.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,10 @@ jobs:
2323

2424
- name: Install Dependencies 🔧
2525
run: npm install --no-package-lock
26+
- run: npm run build -- --prod --baseHref=/angular-jss/
2627

27-
- run: |
28-
git config user.name "GitHub Actions Bot"
29-
git config user.email "<>"
30-
31-
- name: Build & Deploy 🚀
32-
run: |
33-
npm run deploy -- --message="docs(package): gh-pages"
28+
- name: Deploy to GitHub Pages 🚀
29+
uses: peaceiris/actions-gh-pages@v3
30+
with:
31+
github_token: ${{ secrets.GITHUB_TOKEN }}
32+
publish_dir: ./dist/apps/webpage

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,7 @@
3030
"dep-graph": "nx dep-graph",
3131
"help": "nx help",
3232
"prerelease": "nx affected:build --all",
33-
"release": "nx affected --target release --all",
34-
"predeploy": "npm run build -- --prod --baseHref=/angular-jss/",
35-
"deploy": "gh-pages -d dist/apps/webpage"
33+
"release": "nx affected --target release --all"
3634
},
3735
"private": true,
3836
"dependencies": {
@@ -45,10 +43,13 @@
4543
"@angular/platform-browser-dynamic": "~13.2.0",
4644
"@angular/router": "~13.2.0",
4745
"@nrwl/angular": "13.8.4",
46+
"highlight.js": "^11.4.0",
4847
"jss": "^10.9.0",
4948
"jss-plugin-camel-case": "^10.9.0",
5049
"jss-plugin-global": "^10.9.0",
5150
"jss-plugin-rule-value-function": "^10.9.0",
51+
"jss-preset-default": "^10.9.0",
52+
"ngx-highlightjs": "^6.1.1",
5253
"rxjs": "~7.5.4",
5354
"tslib": "^2.0.0",
5455
"zone.js": "~0.11.4"
@@ -84,7 +85,6 @@
8485
"eslint": "~8.10.0",
8586
"eslint-config-prettier": "8.4.0",
8687
"eslint-plugin-cypress": "^2.10.3",
87-
"gh-pages": "^3.2.3",
8888
"hasky": "^3.0.2",
8989
"jest": "27.5.1",
9090
"jest-preset-angular": "11.1.1",

0 commit comments

Comments
 (0)