From fdb6074122b439db55a9037e0e12c199b74717da Mon Sep 17 00:00:00 2001 From: sgoudham Date: Mon, 31 Jan 2022 23:50:56 +0000 Subject: [PATCH] Update changelog separately --- .github/workflows/deploy.yml | 39 +++++++++++++++++++----------------- 1 file changed, 21 insertions(+), 18 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 0dc22e5..0f94c08 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -47,11 +47,6 @@ jobs: 7z a "${{ env.BIN }}.zip" "${{ env.BIN }}.exe" mv "${{ env.BIN }}.zip" $GITHUB_WORKSPACE shell: bash - - name: "Build Changelog" - id: build_changelog - uses: mikepenz/release-changelog-builder-action@v2.8.0 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - uses: XAMPPRocky/create-release@v1.0.2 id: create_release env: @@ -59,7 +54,6 @@ jobs: with: tag_name: ${{ github.ref }} release_name: ${{ github.ref }} - body: ${{steps.github_release.outputs.changelog}} draft: false prerelease: false - uses: actions/upload-release-asset@v1 @@ -90,11 +84,6 @@ jobs: - run: scripts/set_rust_version.bash stable ${{ matrix.target }} - run: scripts/build.bash cross ${{ matrix.target }} RELEASE - run: tar -czvf ${{ env.BIN }}.tar.gz --directory=target/${{ matrix.target }}/release ${{ env.BIN }} - - name: "Build Changelog" - id: build_changelog - uses: mikepenz/release-changelog-builder-action@v2.8.0 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - uses: XAMPPRocky/create-release@v1.0.2 id: create_release env: @@ -102,7 +91,6 @@ jobs: with: tag_name: ${{ github.ref }} release_name: ${{ github.ref }} - body: ${{steps.github_release.outputs.changelog}} draft: false prerelease: false - uses: actions/upload-release-asset@v1 @@ -146,11 +134,6 @@ jobs: - run: scripts/set_rust_version.bash stable ${{ matrix.target }} - run: scripts/build.bash /tmp/cross ${{ matrix.target }} RELEASE - run: tar -czvf ${{ env.BIN }}.tar.gz --directory=target/${{ matrix.target }}/release ${{ env.BIN }} - - name: "Build Changelog" - id: build_changelog - uses: mikepenz/release-changelog-builder-action@v2.8.0 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - uses: XAMPPRocky/create-release@v1.0.2 id: create_release env: @@ -158,7 +141,6 @@ jobs: with: tag_name: ${{ github.ref }} release_name: ${{ github.ref }} - body: ${{steps.github_release.outputs.changelog}} draft: false prerelease: false - name: Upload Release Asset @@ -171,6 +153,27 @@ jobs: asset_path: ${{ env.BIN }}.tar.gz asset_name: ${{ env.BIN }}-${{ matrix.target }}.tar.gz asset_content_type: application/gzip + + changelog: + name: Release Changelog + needs: + - windows + - macos + - linux + runs-on: ubuntu-latest + steps: + - name: "Build Changelog" + id: build_changelog + uses: mikepenz/release-changelog-builder-action@v2.8.0 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Update release + uses: johnwbyrd/update-release@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} + body: ${{steps.github_release.outputs.changelog}} + + homebrew: name: Bump Homebrew formula needs: macos