modify ci to use artifact storage

This commit is contained in:
RandomityGuy 2023-02-20 18:54:16 +05:30
parent af10499480
commit 516a18ce71

View file

@ -14,6 +14,10 @@ jobs:
NPROC: 4 NPROC: 4
COMMIT_TAG: pipeline.git.tag COMMIT_TAG: pipeline.git.tag
steps: steps:
- add_ssh_keys:
fingerprints:
- "82:42:56:a0:57:43:95:4e:00:c0:8c:c1:7f:70:74:47"
- checkout: - checkout:
path: ~/MBHaxe path: ~/MBHaxe
@ -222,10 +226,15 @@ jobs:
command: | command: |
cd ~/MBHaxe cd ~/MBHaxe
rm -rf "macos-dist/MarbleBlast Gold.app.in" 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: - run:
path: ~/MBHaxe/MBHaxe-Gold.zip 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: build-win:
executor: executor:
@ -237,6 +246,10 @@ jobs:
# Then run your tests! # Then run your tests!
# CircleCI will report the results back to your VCS provider. # CircleCI will report the results back to your VCS provider.
steps: steps:
- add_ssh_keys:
fingerprints:
- "82:42:56:a0:57:43:95:4e:00:c0:8c:c1:7f:70:74:47"
- checkout - checkout
- run: - run:
name: Install dependencies name: Install dependencies
@ -338,8 +351,13 @@ jobs:
command: | command: |
cd ~/project cd ~/project
7z a MBHaxe-Gold-Win.zip release/ 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 # Invoke jobs via workflows