Skip to content

Commit

Permalink
Fix workflows/release
Browse files Browse the repository at this point in the history
  • Loading branch information
fuyutarow committed Apr 25, 2021
1 parent 90d3c4b commit 2a3cdc3
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 5 deletions.
43 changes: 40 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,16 +63,53 @@ jobs:
files: "*.zip\n*.rpm"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Dispatch homebrew Repository update
- name: Dispatch homebrew Repository update for Linux
if: matrix.os == 'ubuntu-latest'
uses: peter-evans/repository-dispatch@v1
with:
token: ${{ secrets.HOMEBREW_REPO_GITHUB_TOKEN }}
repository: fuyutarow/homebrew-tap
event-type: update
client-payload: |
{
"type": "update_sha",
"os": "linux",
"bin_name": "${{ steps.set_envs.outputs.bin_name }}",
"version": "${{ steps.set_envs.outputs.version }}",
"sha_linux": "${{ steps.build_linux.outputs.sha }}",
"sha_mac": "${{ steps.build_mac.outputs.sha }}"
"sha": "${{ steps.build_linux.outputs.sha }}"
}
- name: Dispatch homebrew Repository update for mac
if: matrix.os == 'macOS-latest'
uses: peter-evans/repository-dispatch@v1
with:
token: ${{ secrets.HOMEBREW_REPO_GITHUB_TOKEN }}
repository: fuyutarow/homebrew-tap
event-type: update
client-payload: |
{
"type": "update_sha",
"os": "mac",
"bin_name": "${{ steps.set_envs.outputs.bin_name }}",
"version": "${{ steps.set_envs.outputs.version }}",
"sha": "${{ steps.build_mac.outputs.sha }}"
}
final:
runs-on: ubuntu-latest
needs: build
steps:
- name: Set envs
id: set_envs
run: |
echo ::set-output name=bin_name::version-make
- name: Dispatch homebrew Repository final
uses: peter-evans/repository-dispatch@v1
with:
token: ${{ secrets.HOMEBREW_REPO_GITHUB_TOKEN }}
repository: fuyutarow/homebrew-tap
event-type: update
client-payload: |
{
"type": "update_formula",
"bin_name": "${{ steps.set_envs.outputs.bin_name }}"
}
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "version-make"
version = "0.202104.12"
version = "0.202104.13"
authors = ["fuyutarow <[email protected]>"]
edition = "2018"

Expand Down

0 comments on commit 2a3cdc3

Please sign in to comment.