Skip to content

Commit ee29e20

Browse files
authored
build: preserve built files in dist folder when cleaning up all the rest for the deployment (#710)
1 parent 8c7760f commit ee29e20

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/build-and-deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
- name: Copy built files to dist branch
3939
run: |
4040
# Remove old built files
41-
find . -name "*.user.js" -not -path "./node_modules/*" -not -path "./.git/*" -delete
41+
find . -name "*.user.js" -not -path "./node_modules/*" -not -path "./.git/*" -not -path "./dist/*" -delete
4242
4343
# Copy new built files
4444
cp -r dist/* .
@@ -56,7 +56,7 @@ jobs:
5656
echo "No changes to commit"
5757
else
5858
git add .
59-
git commit -m "Build userscripts from master branch $(git rev-parse --short HEAD)"
59+
git commit --no-verify -m "Build userscripts from master branch $(git rev-parse --short HEAD)"
6060
git push origin dist
6161
fi
6262

0 commit comments

Comments
 (0)