Skip to content
This repository has been archived by the owner on Oct 3, 2023. It is now read-only.

Commit

Permalink
デプロイ時にサイトマップの生成に失敗する問題を修正する
Browse files Browse the repository at this point in the history
  • Loading branch information
calmery committed Nov 10, 2020
1 parent 70ef453 commit cc58039
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion .github/workflows/deploy-to-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ jobs:
with:
environment: Preview
token: ${{ secrets.GITHUB_TOKEN }}
- run: node scripts/generate-sitemap.js
- id: vercel
run: vercel -b GITHUB_REPOSITORY=$GITHUB_REPOSITORY -b GITHUB_SHA=$GITHUB_SHA -t $VERCEL_TOKEN > environment-url
- if: failure()
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/deploy-to-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ jobs:
with:
environment: Production
token: ${{ secrets.GITHUB_TOKEN }}
- run: node scripts/generate-sitemap.js
- id: vercel
run: vercel -b GITHUB_RELEASE_TAG_NAME=${{ steps.tag_name.outputs.body }} -b GITHUB_REPOSITORY=$GITHUB_REPOSITORY -b GITHUB_SHA=$GITHUB_SHA --prod -t $VERCEL_TOKEN > environment-url
- if: failure()
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"name": "metaneno.art",
"private": true,
"scripts": {
"build": "next build && node scripts/insert-noneme-aa-to-html.js",
"build": "next build && node scripts/insert-noneme-aa-to-html.js && node scripts/generate-sitemap.js",
"fix": "run-s fix:eslint fix:prettier fix:stylelint fix:svgo",
"fix:eslint": "eslint --ext .js,.ts,.tsx --fix --ignore-path .gitignore .",
"fix:prettier": "prettier --write .",
Expand Down

0 comments on commit cc58039

Please sign in to comment.