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 name: Deploy datapack to prod
on: on:
pull_request: pull_request:
branches: master branches: [master]
jobs: jobs:
build: build:
name: Build name: Build

View File

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