overhaul gitea workflows

- move action.yaml from root to workflows directory.
- rename to push_prod.
- add push_staging and push_dev.
This commit is contained in:
themodernhakr 2025-03-08 19:56:07 -06:00
parent 179fc596cd
commit ce0d8cc424
3 changed files with 25 additions and 6 deletions

View File

@ -0,0 +1,17 @@
name: Deploy datapack to prod
on:
pull_request:
branches: [dev, dev-player-messages, dev-database]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Updating prod servers...
uses: appleboy/ssh-action@v1.2.1
with:
host: ${{ secrets.HOST }}
username: linuxserver.io
password: ${{ secrets.PASSWORD }}
port: ${{ secrets.PORT }}
script_path: scripts/update_servers.sh

View File

@ -1,7 +1,7 @@
name: Deploy datapack to prod
on:
pull_request:
branches: master
branches: [master]
jobs:
build:
name: Build

View File

@ -1,15 +1,17 @@
name: remote ssh command
on: [push]
name: Deploy datapack to prod
on:
pull_request:
branches: [staging]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: update server datapack folder
- name: Updating prod servers...
uses: appleboy/ssh-action@v1.2.1
with:
host: ${{ secrets.HOST }}
username: sadmin
username: linuxserver.io
password: ${{ secrets.PASSWORD }}
port: ${{ secrets.PORT }}
script: whoami
script_path: scripts/update_servers.sh