Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
feat(scripts): add ci scripts
  • Loading branch information
Airscript committed Aug 13, 2022
commit 8a2f238ff5c8a63e245cb65c6933a14b01eb5a7b
2 changes: 2 additions & 0 deletions scripts/ci/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
hugo --gc --minify
2 changes: 2 additions & 0 deletions scripts/ci/deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh
netlify deploy --site $1 --auth $2 --prod --dir=public
16 changes: 16 additions & 0 deletions scripts/ci/verify.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/sh
if [ "$1" = "build" ]; then
apk --version

elif [ "$1" = "deploy" ]; then
apk --version
node -v
npm -v

elif [ "$1" = "publish" ]; then
apk --version

else
echo ERROR: Environment not found.
exit 1
fi