Enhance release branch handling

Streamlined the branch checkout process by switching to `release --no-checkout` and added the push operation to the release branch. This improves the workflow efficiency and ensures the release branch is updated consistently.
This commit is contained in:
2024-08-16 17:51:54 +02:00
parent c240083cf0
commit 6581ef6058

View File

@@ -94,11 +94,12 @@ jobs:
id: create_temp_branch id: create_temp_branch
if: steps.check_version.outputs.skip_release == 'false' if: steps.check_version.outputs.skip_release == 'false'
run: | run: |
git checkout --orphan release/v${{ env.VERSION }} git checkout release --no-checkout
git reset git reset
rm -f .gitignore rm -f .gitignore
git add README.md package.json LICENSE dist/ src/ tsconfig.json git add README.md package.json LICENSE dist/ src/ tsconfig.json
git commit -m "Prepare files for release ${{ env.VERSION }}" git commit -m "Prepare files for release ${{ env.VERSION }}"
git push origin release
shell: bash shell: bash
- name: Create and push tag - name: Create and push tag