Skip to content

Commit

Permalink
Revert "ci: publish release just after builds"
Browse files Browse the repository at this point in the history
This reverts commit 1ac94bd.
  • Loading branch information
rogosprojects committed Aug 12, 2024
1 parent 1ac94bd commit 5165815
Showing 1 changed file with 22 additions and 32 deletions.
54 changes: 22 additions & 32 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,29 +7,6 @@ on:

jobs:

update-changelog:
name: Created draft release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: requarks/changelog-action@v1
name: "Update CHANGELOG"
id: changelog
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref_name }}
- uses: softprops/action-gh-release@v2
name: "Add changes to release notes"
with:
body: ${{ steps.changelog.outputs.changes }}
draft: true
- name: Commit CHANGELOG.md
uses: stefanzweifel/git-auto-commit-action@v5
with:
branch: master
commit_message: 'docs: update CHANGELOG.md for ${{ github.ref_name }} [skip ci]'
file_pattern: CHANGELOG.md

releases-matrix:
name: Release Go Binary
runs-on: ubuntu-latest
Expand Down Expand Up @@ -66,15 +43,28 @@ jobs:
md5sum: false
ldflags: '-X github.com/${{ env.PACKAGE_NAME }}/cmd.BuildVersion=${{ env.RELEASE_TAG }}'

publish-release:
needs:
- releases-matrix
- update-changelog
name: "Publish release"
update-changelog:
needs: releases-matrix
name: Create release
runs-on: ubuntu-latest
steps:
- uses: softprops/action-gh-release@v2
name: "Add changes to release notes"
with:
draft: false
- uses: actions/checkout@v3
- uses: requarks/changelog-action@v1
name: "Update CHANGELOG"
id: changelog
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref_name }}
- uses: softprops/action-gh-release@v2
name: "Add changes to release notes"
with:
body: ${{ steps.changelog.outputs.changes }}
- name: Commit CHANGELOG.md
uses: stefanzweifel/git-auto-commit-action@v5
with:
branch: master
commit_message: 'docs: update CHANGELOG.md for ${{ github.ref_name }} [skip ci]'
file_pattern: CHANGELOG.md



0 comments on commit 5165815

Please sign in to comment.