From 613ca2a4009414906f2e8720a6610d9352be90c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ma=C5=A1karinec?= Date: Mon, 29 Jan 2024 20:25:58 +0100 Subject: [PATCH] Add linux CI script MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marek Maškarinec --- .github/workflows/package.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml index 3850d95b..902166eb 100644 --- a/.github/workflows/package.yml +++ b/.github/workflows/package.yml @@ -11,3 +11,25 @@ jobs: git submodule init git submodule update --remote ./msbuild.bat + Build: + runs-on: ubuntu-20.04 + - uses: actions/checkout@v2 + - name: Install SSH key + run: apt install -y openssh-client + uses: shimataro/ssh-key-action@v2 + with: + key: ${{ secrets.SSH_KEY }} + - name: Update submodules + run: | + git submodule init + git submodule update --remote + - name: Build linux + run: make + - name: Build windows + run: make cross + - name: Deploy + run: | + rsync --rsh="ssh -o StrictHostKeyChecking=no" tophat marek@tophat2d.dev:www/tophat-web/dl/tophat-linux + rsync --rsh="ssh -o StrictHostKeyChecking=no" tophat.exe marek@tophat2d.dev:www/tophat-web/dl/tophat-windows.exe + - name: On push script + ssh -o 'StrictHostKeyChecking no' marek@tophat2d.dev /home/marek/on-tophat-push