Skip to content

Commit

Permalink
feat: Generate sitemap on merge
Browse files Browse the repository at this point in the history
  • Loading branch information
biharygergo committed Jan 15, 2025
1 parent f4cc54f commit b59fe84
Show file tree
Hide file tree
Showing 4 changed files with 128 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/firebase-hosting-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: npm ci && npm run build
- run: npm ci && npm run build && npm run generate-sitemap
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/firebase-hosting-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: npm ci && npm run build
- run: npm ci && npm run build && npm run generate-sitemap
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
Expand Down
123 changes: 123 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
"generate-routes": "ts-node src/cli/generate_routes.ts",
"upload-articles": "gsutil copy -r src/assets/articles/** gs://planning-poker-public-assets/articles",
"stripe-forward-local": "stripe listen --forward-to 127.0.0.1:5001/ext-firestore-stripe-payments-handleWebhookEvents",
"serve:ssr:estimator": "node dist/estimator/server/server.mjs"
"serve:ssr:estimator": "node dist/estimator/server/server.mjs",
"generate-sitemap": "ngx-sitemap dist/estimator/browser https://planningpoker.live"
},
"private": true,
"dependencies": {
Expand Down Expand Up @@ -90,6 +91,7 @@
"karma-coverage-istanbul-reporter": "~3.0.2",
"karma-jasmine": "~4.0.0",
"karma-jasmine-html-reporter": "^1.5.4",
"ngx-sitemap": "^1.0.0",
"protractor": "~7.0.0",
"sonar-scanner": "^3.1.0",
"ts-node": "~8.3.0",
Expand Down

0 comments on commit b59fe84

Please sign in to comment.