From a989743534088daa51b20daea09cdf91200e8970 Mon Sep 17 00:00:00 2001 From: Evgeny Metelkin Date: Wed, 8 Jan 2025 15:39:45 +0200 Subject: [PATCH] add DEPLOY_KEY --- .github/workflows/on-release.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/on-release.yml b/.github/workflows/on-release.yml index a59e6e2d..71514c0d 100644 --- a/.github/workflows/on-release.yml +++ b/.github/workflows/on-release.yml @@ -41,6 +41,15 @@ jobs: asset_name: heta-compiler-macos.tar.gz asset_content_type: application/octet-stream + - name: Configure SSH + run: | + mkdir -p ~/.ssh + echo "$DEPLOY_KEY" > ~/.ssh/id_rsa + chmod 600 ~/.ssh/id_rsa + ssh-keyscan github.com >> ~/.ssh/known_hosts + env: + DEPLOY_KEY: ${{ secrets.DEPLOY_HOMEBREW_HETA_COMPILER }} + - name: Commit to homebrew-heta-compiler repos run: | git clone git@github.com:hetalang/homebrew-heta-compiler.git @@ -51,7 +60,7 @@ jobs: ls git add . git commit -m "Automated update from source repository based on release ${{ github.event.release.tag_name }}" -# git push origin master + git push origin master upload-linux-release-asset: runs-on: ubuntu-latest steps: