diff --git a/.github/workflows/on-release.yml b/.github/workflows/on-release.yml index 729f40f8..a59e6e2d 100644 --- a/.github/workflows/on-release.yml +++ b/.github/workflows/on-release.yml @@ -40,6 +40,18 @@ jobs: asset_path: dist/heta-compiler-macos.tar.gz asset_name: heta-compiler-macos.tar.gz asset_content_type: application/octet-stream + + - name: Commit to homebrew-heta-compiler repos + run: | + git clone git@github.com:hetalang/homebrew-heta-compiler.git + cd homebrew-heta-compiler + git config user.name "GitHub Actions" + git config user.email "actions@github.com" + cp -f ../build-hombrew/heta-compiler.rb Formula/ # copy the new formula and replace the old one + ls + git add . + git commit -m "Automated update from source repository based on release ${{ github.event.release.tag_name }}" +# git push origin master upload-linux-release-asset: runs-on: ubuntu-latest steps: