From 10cd511451fd8fbd042866a2e52860037cf8194e Mon Sep 17 00:00:00 2001 From: Fansana Date: Wed, 24 Jul 2024 06:21:08 +0200 Subject: [PATCH] fix publish --- .github/workflows/publish.yml | 2 ++ Tools/publish_github_artifact.py | 9 ++------- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 081d89526d8..e769ae37034 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -57,6 +57,8 @@ jobs: PUBLISH_TOKEN: ${{ secrets.PUBLISH_TOKEN }} ARTIFACT_ID: ${{ steps.artifact-upload-step.outputs.artifact-id }} GITHUB_REPOSITORY: ${{ vars.GITHUB_REPOSITORY }} + ROBUST_CDN_URL: ${{ vars.ROBUST_CDN_URL }} + FORK_ID: ${{ vars.FORK_ID }} # - name: Publish changelog (Discord) # run: Tools/actions_changelogs_since_last_run.py diff --git a/Tools/publish_github_artifact.py b/Tools/publish_github_artifact.py index 867c40f0949..0ad1fa6325e 100755 --- a/Tools/publish_github_artifact.py +++ b/Tools/publish_github_artifact.py @@ -9,13 +9,8 @@ ARTIFACT_ID = os.environ["ARTIFACT_ID"] GITHUB_REPOSITORY = os.environ["GITHUB_REPOSITORY"] VERSION = os.environ['GITHUB_SHA'] - -# -# CONFIGURATION PARAMETERS -# Forks should change these to publish to their own infrastructure. -# -ROBUST_CDN_URL = "http://floofstation.com:27690/" -FORK_ID = "floofstation-main" +ROBUST_CDN_URL = os.environ['ROBUST_CDN_URL'] +FORK_ID = os.environ['FORK_ID'] def main(): print("Fetching artifact URL from API...")