From 516a18ce71fdfe11c7a484b466ff0f9866f686b4 Mon Sep 17 00:00:00 2001 From: RandomityGuy <31925790+RandomityGuy@users.noreply.github.com> Date: Mon, 20 Feb 2023 18:54:16 +0530 Subject: [PATCH] modify ci to use artifact storage --- .circleci/config.yml | 28 +++++++++++++++++++++++----- 1 file changed, 23 insertions(+), 5 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index bccab7e7..eba426e0 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -14,6 +14,10 @@ jobs: NPROC: 4 COMMIT_TAG: pipeline.git.tag steps: + - add_ssh_keys: + fingerprints: + - "82:42:56:a0:57:43:95:4e:00:c0:8c:c1:7f:70:74:47" + - checkout: path: ~/MBHaxe @@ -222,10 +226,15 @@ jobs: command: | cd ~/MBHaxe rm -rf "macos-dist/MarbleBlast Gold.app.in" - zip -r MBHaxe-Gold.zip macos-dist/ + zip -r MBHaxe-Gold-Mac.zip macos-dist/ - - store_artifacts: - path: ~/MBHaxe/MBHaxe-Gold.zip + - run: + name: Upload to Artifact Storage + command: | + scp -o StrictHostKeyChecking=no -i $KEYPATH -P $PORT ~/MBHaxe/MBHaxe-Gold-Mac.zip $REMOTEDIR/MBHaxe-Gold-Mac.zip + + # - store_artifacts: + # path: ~/MBHaxe/MBHaxe-Gold.zip build-win: executor: @@ -237,6 +246,10 @@ jobs: # Then run your tests! # CircleCI will report the results back to your VCS provider. steps: + - add_ssh_keys: + fingerprints: + - "82:42:56:a0:57:43:95:4e:00:c0:8c:c1:7f:70:74:47" + - checkout - run: name: Install dependencies @@ -338,8 +351,13 @@ jobs: command: | cd ~/project 7z a MBHaxe-Gold-Win.zip release/ - - store_artifacts: - path: ~/project/MBHaxe-Gold-Win.zip + + - run: + name: Upload to Artifact Storage + command: | + scp -o StrictHostKeyChecking=no -i $KEYPATH -P $PORT ~/project/MBHaxe-Gold-Win.zip $REMOTEDIR/MBHaxe-Gold-Win.zip + # - store_artifacts: + # path: ~/project/MBHaxe-Gold-Win.zip # Invoke jobs via workflows