From eef70d9717f12a321b6b9df812f84d8eb63fb6a3 Mon Sep 17 00:00:00 2001 From: Valtos Date: Wed, 21 Feb 2024 14:07:26 +0300 Subject: [PATCH] Update publish.yml (#107) --- .github/workflows/publish.yml | 32 +++++++++++++++++--------------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index a470f3a254..e9cb11f36a 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -5,12 +5,10 @@ concurrency: on: workflow_dispatch: - schedule: - - cron: '0 10 * * *' jobs: build: - runs-on: self-hosted + runs-on: ubuntu-latest steps: - name: Install dependencies @@ -49,23 +47,27 @@ jobs: mkdir "release/${{ github.sha }}" mv release/*.zip "release/${{ github.sha }}" - - name: Upload files to centcomm - uses: appleboy/scp-action@master + - name: Upload files to hive + uses: burnett01/rsync-deployments@5.2 with: - host: centcomm.spacestation14.io - username: wizards-build-push - key: ${{ secrets.CENTCOMM_WIZARDS_BUILDS_PUSH_KEY }} - source: "release/${{ github.sha }}" - target: "/home/wizards-build-push/builds_dir/builds/" - strip_components: 1 + switches: -avzr --ignore-existing + path: "release/${{ github.sha }}" + remote_path: ${{ secrets.BUILDS_PATH }} + remote_host: ${{ secrets.BUILDS_HOST }} + remote_port: ${{ secrets.BUILDS_PORT }} + remote_user: ${{ secrets.BUILDS_USERNAME }} + remote_key: ${{ secrets.BUILDS_SSH_KEY }} + remote_key_pass: ${{ secrets.BUILDS_SSH_KEY_PASS }} - name: Update manifest JSON uses: appleboy/ssh-action@master with: - host: centcomm.spacestation14.io - username: wizards-build-push - key: ${{ secrets.CENTCOMM_WIZARDS_BUILDS_PUSH_KEY }} - script: /home/wizards-build-push/push.ps1 ${{ github.sha }} + host: ${{ secrets.BUILDS_HOST }} + port: ${{ secrets.BUILDS_PORT }} + username: ${{ secrets.BUILDS_USERNAME }} + key: ${{ secrets.BUILDS_SSH_KEY }} + passphrase: ${{ secrets.BUILDS_SSH_KEY_PASS }} + script: sh ~/ss14/anvil/cortice.sh ${{ github.sha }} - name: Publish changelog (Discord) run: Tools/actions_changelogs_since_last_run.py