Skip to content

Commit

Permalink
ci: ghpage deployment not working
Browse files Browse the repository at this point in the history
  • Loading branch information
mciissee committed Aug 27, 2024
1 parent 39bb026 commit 8682125
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/publish-ghpages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,8 @@ jobs:
with:
node-version: ${{ env.NODE_VERSION }}

- name: Build
run: yarn build:app

- name: Publish to gh-pages
if: success()
run: yarn publish:app
env:
CI: true
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GH_PAGE_TOKEN }}
7 changes: 7 additions & 0 deletions apps/app/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,13 @@
"options": {
"jestConfig": "apps/app/jest.config.ts"
}
},
"deploy": {
"executor": "angular-cli-ghpages:deploy",
"options": {
"buildTarget": "app:build:production",
"baseHref": "https://cisstech.github.io/nestkit/"
}
}
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"build:api": "nx run api:build --prod",
"build:app": "nx run app:build --prod --base-href='https://cisstech.github.io/nestkit/'",
"build:libs": "nx run-many --target=build --projects=expand --configuration=production",
"publish:app": "angular-cli-ghpages --dir=./dist/apps/app/browser",
"publish:app": "nx run app:deploy --dir=./dist/apps/app/browser",
"test": "nx run-many --target=test --all --coverage=true --coverageReporters=lcov --watch=false --browsers=ChromeHeadless && node coverage-merger.js",
"lint": "nx report && nx run-many --target=lint --all",
"lint:fix": "nx report && nx run-many --target=lint --all --fix",
Expand Down

0 comments on commit 8682125

Please sign in to comment.