CI: only trigger on release; remove release script

This commit is contained in:
2026-06-08 18:42:21 +03:00
parent 8102e08b07
commit 32204f4cf9
3 changed files with 1 additions and 10 deletions

View File

@@ -2,7 +2,6 @@ name: Build & Deploy
on:
push:
branches:
- main
- release
jobs:
@@ -15,14 +14,12 @@ jobs:
run: docker build -t barotrauma-server:${{ github.sha }} .
- name: Tag and push to local registry
if: github.ref_name == 'release'
run: |
docker tag barotrauma-server:${{ github.sha }} \
${{ secrets.REGISTRY_ADDR }}/barotrauma-server:latest
docker push ${{ secrets.REGISTRY_ADDR }}/barotrauma-server:latest
- name: Deploy via SSH
if: github.ref_name == 'release'
uses: appleboy/ssh-action@v1
with:
host: ${{ secrets.SERVER_HOST }}

1
commit
View File

@@ -6,6 +6,7 @@ if [ $# -eq 0 ]; then
exit 1
fi
git pull --rebase origin main
git add -A
git commit -m "$*"
git push origin main

View File

@@ -1,7 +0,0 @@
#!/bin/sh
set -e
git checkout release
git merge main
git push origin release
git checkout main