Skip to content

Commit

Permalink
fix(ci): release workflow should not remove old and add new tag
Browse files Browse the repository at this point in the history
Signed-off-by: Anton Engelhardt <[email protected]>
  • Loading branch information
antonengelhardt committed Jun 5, 2024
1 parent 9e02b68 commit e21a4e7
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
ssh-key: ${{ secrets.RELEASE_DEPLOY_KEY }}

- name: Extract version from Github Ref
id: extract_version
Expand All @@ -39,11 +40,6 @@ jobs:
- name: Print Changelog
run: cat ${{ steps.generate_changelog.outputs.changelog }} && echo "##" && cat CHANGELOG.md

- name: Delete previous tag
run: |
git tag -d ${{ env.VERSION }}
git push --delete origin ${{ env.VERSION }}
- name: Commit Version and CHANGELOG.md
run: |
git checkout origin/main
Expand All @@ -54,11 +50,6 @@ jobs:
git commit -m "chore(relase): prepare for ${{ env.VERSION }}"
git push origin HEAD:main
- name: New Tag
run: |
git tag ${{ env.VERSION }}
git push origin ${{ env.VERSION }}
- name: Create Release
uses: actions/create-release@v1
env:
Expand Down

0 comments on commit e21a4e7

Please sign in to comment.