Skip to content

Commit

Permalink
Deploy nightly by workflow instead of manual
Browse files Browse the repository at this point in the history
  • Loading branch information
stakeworld committed Dec 23, 2023
1 parent 140f540 commit b286681
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: deploy

on:
#push:
# branches:
# - master
push:
branches:
- master
workflow_dispatch:

jobs:
Expand Down
8 changes: 7 additions & 1 deletion scripts/sizeup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -123,4 +123,10 @@ cd $workdir/scripts
echo "Making snapsize graph"
./snapsize.sh

echo Finished
# Commit (with deploy workflow)
git commit ../docs/dbsize.mdx ../static/img/*.png -m "DBsize page deploy"
git push

#The end
echo "Finished"

7 changes: 6 additions & 1 deletion scripts/snapshot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -127,4 +127,9 @@ cd $workdir/scripts
echo "Making snapsize graph"
./snapsize.sh

echo Finished
# Commit (with deploy workflow)
git commit ../docs/snapshot.mdx -m "Snapshot page deploy"
git push

# The end
echo "Finished"

0 comments on commit b286681

Please sign in to comment.