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:
6
.github/workflows/CreateRelease.yml
vendored
6
.github/workflows/CreateRelease.yml
vendored
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user