diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 852d5ee..e015da3 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -121,6 +121,12 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Push new tag + if: steps.commits.outputs.new_version != '0.0.0' + run: git push origin ${{ steps.version.outputs.new_version }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Generate release notes id: release_notes run: | @@ -158,12 +164,6 @@ jobs: cat release_notes.md continue-on-error: false - - name: Push new tag - if: steps.commits.outputs.new_version != '0.0.0' - run: git push origin ${{ steps.version.outputs.new_version }} - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Create Release id: create_release uses: softprops/action-gh-release@v1