-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Marek Maškarinec <[email protected]>
- Loading branch information
1 parent
35b1d64
commit 613ca2a
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 [email protected]:www/tophat-web/dl/tophat-linux | ||
rsync --rsh="ssh -o StrictHostKeyChecking=no" tophat.exe [email protected]:www/tophat-web/dl/tophat-windows.exe | ||
- name: On push script | ||
ssh -o 'StrictHostKeyChecking no' [email protected] /home/marek/on-tophat-push |