Skip to content

Commit

Permalink
Merge pull request #785 from centrapay/fix-build-script
Browse files Browse the repository at this point in the history
Fix build script
  • Loading branch information
AndyClifford authored Oct 2, 2023
2 parents f923a20 + 761ef6f commit 0f6e212
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- run: yarn install --frozen-lock-file
- run: yarn lint
- run: yarn test
- run: ./build.sh --prod
- run: ./build.sh --mode production
- uses: JamesIves/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.JEKYLL_PAT }}
Expand Down
6 changes: 3 additions & 3 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ mode="development"

while [ $# -gt 0 ]; do
case $1 in
--prod)
--mode)
shift
mode="production"
mode="$1"
;;
esac
shift
Expand All @@ -24,7 +24,7 @@ cd ../
if [ "$mode" == "development" ]; then
yarn build --mode "$mode" --site "http://centrapay-docs.dev.s3-website-ap-southeast-1.amazonaws.com"
else
yarn build
yarn build --mode "$mode"
fi

rsync -a dist/* _site/
Expand Down

0 comments on commit 0f6e212

Please sign in to comment.