Skip to content

Commit

Permalink
add DEPLOY_KEY
Browse files Browse the repository at this point in the history
  • Loading branch information
metelkin committed Jan 8, 2025
1 parent 8ee2186 commit a989743
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/on-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit a989743

Please sign in to comment.