Update changelog separately

pull/8/head
sgoudham 3 years ago
parent 24903a072b
commit fdb6074122

@ -47,11 +47,6 @@ jobs:
7z a "${{ env.BIN }}.zip" "${{ env.BIN }}.exe" 7z a "${{ env.BIN }}.zip" "${{ env.BIN }}.exe"
mv "${{ env.BIN }}.zip" $GITHUB_WORKSPACE mv "${{ env.BIN }}.zip" $GITHUB_WORKSPACE
shell: bash 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 - uses: XAMPPRocky/create-release@v1.0.2
id: create_release id: create_release
env: env:
@ -59,7 +54,6 @@ jobs:
with: with:
tag_name: ${{ github.ref }} tag_name: ${{ github.ref }}
release_name: ${{ github.ref }} release_name: ${{ github.ref }}
body: ${{steps.github_release.outputs.changelog}}
draft: false draft: false
prerelease: false prerelease: false
- uses: actions/upload-release-asset@v1 - uses: actions/upload-release-asset@v1
@ -90,11 +84,6 @@ jobs:
- run: scripts/set_rust_version.bash stable ${{ matrix.target }} - run: scripts/set_rust_version.bash stable ${{ matrix.target }}
- run: scripts/build.bash cross ${{ matrix.target }} RELEASE - run: scripts/build.bash cross ${{ matrix.target }} RELEASE
- run: tar -czvf ${{ env.BIN }}.tar.gz --directory=target/${{ matrix.target }}/release ${{ env.BIN }} - 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 - uses: XAMPPRocky/create-release@v1.0.2
id: create_release id: create_release
env: env:
@ -102,7 +91,6 @@ jobs:
with: with:
tag_name: ${{ github.ref }} tag_name: ${{ github.ref }}
release_name: ${{ github.ref }} release_name: ${{ github.ref }}
body: ${{steps.github_release.outputs.changelog}}
draft: false draft: false
prerelease: false prerelease: false
- uses: actions/upload-release-asset@v1 - uses: actions/upload-release-asset@v1
@ -146,11 +134,6 @@ jobs:
- run: scripts/set_rust_version.bash stable ${{ matrix.target }} - run: scripts/set_rust_version.bash stable ${{ matrix.target }}
- run: scripts/build.bash /tmp/cross ${{ matrix.target }} RELEASE - run: scripts/build.bash /tmp/cross ${{ matrix.target }} RELEASE
- run: tar -czvf ${{ env.BIN }}.tar.gz --directory=target/${{ matrix.target }}/release ${{ env.BIN }} - 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 - uses: XAMPPRocky/create-release@v1.0.2
id: create_release id: create_release
env: env:
@ -158,7 +141,6 @@ jobs:
with: with:
tag_name: ${{ github.ref }} tag_name: ${{ github.ref }}
release_name: ${{ github.ref }} release_name: ${{ github.ref }}
body: ${{steps.github_release.outputs.changelog}}
draft: false draft: false
prerelease: false prerelease: false
- name: Upload Release Asset - name: Upload Release Asset
@ -171,6 +153,27 @@ jobs:
asset_path: ${{ env.BIN }}.tar.gz asset_path: ${{ env.BIN }}.tar.gz
asset_name: ${{ env.BIN }}-${{ matrix.target }}.tar.gz asset_name: ${{ env.BIN }}-${{ matrix.target }}.tar.gz
asset_content_type: application/gzip 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: homebrew:
name: Bump Homebrew formula name: Bump Homebrew formula
needs: macos needs: macos

Loading…
Cancel
Save