diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml index 3850d95b..260c2cbb 100644 --- a/.github/workflows/package.yml +++ b/.github/workflows/package.yml @@ -11,3 +11,26 @@ 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