Skip to content

Commit c11f410

Browse files
Refactor deploy workflow and update artifact upload
Removed unnecessary echo statements for submodule changes and added overwrite option for artifact upload.
1 parent ccbcd5d commit c11f410

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,7 @@ jobs:
3636
echo "should_deploy=false" >> $GITHUB_OUTPUT
3737
echo "has_submodule_changes=false" >> $GITHUB_OUTPUT
3838
git submodule update --init --recursive --remote
39-
4039
if ! git diff --quiet; then
41-
echo "Submodule changes detected!"
42-
git diff --stat
4340
echo "has_submodule_changes=true" >> $GITHUB_OUTPUT
4441
echo "should_deploy=true" >> $GITHUB_OUTPUT
4542
fi
@@ -51,7 +48,6 @@ jobs:
5148
git config user.email "github-actions[bot]@users.noreply.github.com"
5249
git add -A
5350
git commit -m "Update registry submodule"
54-
5551
git pull --rebase https://x-access-token:${{ secrets.GH_TOKEN }}@github.com/${{ github.repository }}.git main
5652
git push https://x-access-token:${{ secrets.GH_TOKEN }}@github.com/${{ github.repository }}.git HEAD:main
5753
@@ -80,6 +76,7 @@ jobs:
8076
uses: actions/upload-pages-artifact@v3
8177
with:
8278
path: ./dist
79+
overwrite: true
8380

8481
deploy:
8582
needs: build

0 commit comments

Comments
 (0)