From 27ed1515899740095d5853460e0463b27dc85a20 Mon Sep 17 00:00:00 2001 From: Max P Date: Wed, 14 Aug 2024 21:46:58 +0200 Subject: [PATCH] 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. --- .github/workflows/CreateRelease.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/CreateRelease.yml b/.github/workflows/CreateRelease.yml index 2af9662..4280848 100644 --- a/.github/workflows/CreateRelease.yml +++ b/.github/workflows/CreateRelease.yml @@ -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