Improve CreateRelease workflow cleanup

Updated the GitHub Actions CreateRelease workflow to use `git reset` instead of `git rm -rf`, ensuring the `.gitignore` file is removed. Simplifies the preparation of files for release and prevents the removal of unexpected files.
This commit is contained in:
2024-08-14 21:46:58 +02:00
parent 1606c9b6dd
commit 27ed151589

View File

@@ -76,9 +76,9 @@ jobs:
id: create_temp_branch
run: |
git checkout --orphan temp_branch
git rm -rf .
git reset -- README.md package.json LICENSE dist/**
git add README.md package.json LICENSE dist/**
git reset
rm -f .gitignore
git add README.md package.json LICENSE dist/
git commit -m "Prepare files for release ${{ env.VERSION }}"
shell: bash