Merge branch 'sgoudham:main' into main

pull/5/head
StratusFearMe21 3 years ago committed by GitHub
commit 7fb2170a3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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@{latest-release}
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@{latest-release}
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
@ -114,18 +102,6 @@ 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
- uses: mislav/bump-homebrew-formula-action@v1
if: "!contains(github.ref, '-')" # skip prereleases
with:
formula-name: ${{ env.BIN }}
homebrew-tap: sgoudham/tap
download-url: https://github.com/sgoudham/${{ env.BIN }}/releases/download/${{ github.ref }}/${{ env.BIN }}-${{ matrix.target }}.tar.gz
commit-message: |
{{formulaName}} {{version}}
Created by https://github.com/mislav/bump-homebrew-formula-action
env:
COMMITTER_TOKEN: ${{ secrets.HOMEBREW }}
linux: linux:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -146,11 +122,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@{latest-release}
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 +129,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 +141,7 @@ 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
homebrew: homebrew:
name: Bump Homebrew formula name: Bump Homebrew formula
needs: macos needs: macos
@ -185,10 +156,10 @@ jobs:
with: with:
formula-name: ${{ env.BIN }} formula-name: ${{ env.BIN }}
formula-path: Formula/${{ env.BIN }}.rb formula-path: Formula/${{ env.BIN }}.rb
homebrew-tap: sgoudham/tap homebrew-tap: sgoudham/homebrew-tap
download-url: https://github.com/sgoudham/${{ env.BIN }}/releases/download/${{ github.ref }}/${{ env.BIN }}-${{ matrix.target }}.tar.gz download-url: https://github.com/sgoudham/${{ env.BIN }}/releases/download/${{ steps.extract-version.outputs.tag-name }}/${{ env.BIN }}-x86_64-apple-darwin.tar.gz
commit-message: | commit-message: |
{{formulaName}} {{version}} {{formulaName}} -> {{version}}
Created by https://github.com/mislav/bump-homebrew-formula-action Created by https://github.com/mislav/bump-homebrew-formula-action
env: env:

Loading…
Cancel
Save