Skip to content

Commit

Permalink
build: deploy release binary
Browse files Browse the repository at this point in the history
  • Loading branch information
diamante0018 authored Jan 14, 2024
1 parent 848be7b commit bee22b9
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -160,3 +160,30 @@ jobs:
name: macos-${{matrix.arch}}-${{matrix.configuration}}
path: |
build/bin/${{matrix.arch}}/${{matrix.configuration}}/aw-installer
deploy:
name: Deploy artifacts
needs: [build-win, build-linux, build-macos]
runs-on: ubuntu-latest
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
steps:
- name: Setup main environment
if: github.ref == 'refs/heads/master'
run: echo "ALTERWARE_INSTALLER_PATH=${{ secrets.ALTERWARE_INSTALLER_SSH_PATH }}" >> $GITHUB_ENV

- name: Download Release binaries
uses: actions/download-artifact@main
with:
name: linux-x64-release

- name: Install SSH key
uses: shimataro/[email protected]
with:
key: ${{ secrets.ALTERWARE_MASTER_SSH_PRIVATE_KEY }}
known_hosts: 'just-a-placeholder-so-we-dont-get-errors'

- name: Add known hosts
run: ssh-keyscan -H ${{ secrets.ALTERWARE_MASTER_SSH_ADDRESS }} >> ~/.ssh/known_hosts

- name: Upload release binary
run: rsync -avz aw-installer ${{ secrets.ALTERWARE_MASTER_SSH_USER }}@${{ secrets.ALTERWARE_MASTER_SSH_ADDRESS }}:${{ env.ALTERWARE_INSTALLER_PATH }}/

0 comments on commit bee22b9

Please sign in to comment.