diff --git a/.gitea/workflows/action.yaml b/.gitea/workflows/action.yaml new file mode 100644 index 0000000..630154a --- /dev/null +++ b/.gitea/workflows/action.yaml @@ -0,0 +1,15 @@ +name: remote ssh command +on: [push] +jobs: + build: + name: Build + runs-on: ubuntu-latest + steps: + - name: update server datapack folder + uses: appleboy/ssh-action@v1.2.1 + with: + host: ${{ secrets.HOST }} + username: sadmin + password: ${{ secrets.PASSWORD }} + port: ${{ secrets.PORT }} + script: whoami diff --git a/action.yaml b/action.yaml new file mode 100644 index 0000000..ad4e05a --- /dev/null +++ b/action.yaml @@ -0,0 +1,17 @@ +name: Deploy datapack to prod +on: + pull_request: + branches: master +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 diff --git a/scripts/update_servers.sh b/scripts/update_servers.sh new file mode 100644 index 0000000..5c0132d --- /dev/null +++ b/scripts/update_servers.sh @@ -0,0 +1 @@ +whoami