From bfd39b340ef4c1973696aa683e5e1b198cb793c8 Mon Sep 17 00:00:00 2001 From: Debug <49997488+DebugOk@users.noreply.github.com> Date: Wed, 27 Sep 2023 22:12:44 +0200 Subject: [PATCH] Prepare workflows for test publishes (#48) --- .github/workflows/publish.yml | 22 ++++++++++++---------- Tools/gen_build_info.py | 8 ++++---- 2 files changed, 16 insertions(+), 14 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index ae4c4e270f0..c8ce67f71dc 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -5,8 +5,8 @@ concurrency: on: workflow_dispatch: - schedule: - - cron: '0 10 * * *' +# schedule: +# - cron: '0 10 * * *' jobs: build: @@ -45,20 +45,22 @@ jobs: - name: Upload files to centcomm uses: appleboy/scp-action@master with: - host: centcomm.spacestation14.io - username: wizards-build-push - key: ${{ secrets.CENTCOMM_WIZARDS_BUILDS_PUSH_KEY }} + host: ${{ secrets.PUBLISH_HOST }} + username: ${{ secrets.PUBLISH_USER }} + key: ${{ secrets.PUBLISH_KEY }} + port: ${{ secrets.PUBLISH_PORT }} source: "release/${{ github.sha }}" - target: "/home/wizards-build-push/builds_dir/builds/" + target: "/var/www/builds.delta-v.org/delta-v-rebase/builds/" strip_components: 1 - 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.PUBLISH_HOST }} + username: ${{ secrets.PUBLISH_USER }} + key: ${{ secrets.PUBLISH_KEY }} + port: ${{ secrets.PUBLISH_PORT }} + script: /home/${{ secrets.PUBLISH_USER }}/publish/rebasepush.psi ${{ github.sha }} - name: Publish changelog (Discord) run: Tools/actions_changelogs_since_last_run.py diff --git a/Tools/gen_build_info.py b/Tools/gen_build_info.py index 0207f568dd7..e4a0a7f9165 100755 --- a/Tools/gen_build_info.py +++ b/Tools/gen_build_info.py @@ -20,10 +20,10 @@ ] VERSION = os.environ['GITHUB_SHA'] -FORK_ID = "wizards" -BUILD_URL = f"https://cdn.centcomm.spacestation14.com/builds/wizards/builds/{{FORK_VERSION}}/{FILE}" -MANIFEST_URL = f"https://cdn.centcomm.spacestation14.com/cdn/version/{{FORK_VERSION}}/manifest" -MANIFEST_DOWNLOAD_URL = f"https://cdn.centcomm.spacestation14.com/cdn/version/{{FORK_VERSION}}/download" +FORK_ID = "deltav" +BUILD_URL = f"https://builds.delta-v.org/{{FORK_ID}}/builds/{{FORK_VERSION}}/{FILE}" +MANIFEST_URL = f"https://cdn.delta-v.org/version/{{FORK_VERSION}}/manifest" +MANIFEST_DOWNLOAD_URL = f"https://cdn.delta-v.org/version/{{FORK_VERSION}}/download" def main() -> None: client_file = os.path.join("release", FILE)