Skip to content

Commit 2f0ab22

Browse files
committed
CircleCI: Persist the artifacts to the workspace
1 parent b28eb53 commit 2f0ab22

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

.circleci/config.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,16 @@ jobs:
1515
name: Build
1616
command: mkdir build && cd build && cmake -DCMAKE_INSTALL_PREFIX=../sdk/ .. && make && make install && cd ..
1717
- run:
18-
name: Zip the SDK
19-
command: cd sdk && zip -r ../sdk.zip . && cd ..
20-
- store_artifacts:
21-
path: sdk.zip
22-
destination: mod_sdk.zip
18+
name: Pack the SDK and modloader
19+
command: |
20+
mkdir artifacts && cd sdk &&
21+
zip -r ../artifacts/mod_sdk.zip . && cp lib/libserver_modloader.so ../artifacts && cd ..
22+
- persist_to_workspace:
23+
root: artifacts/
24+
paths: ".*"
2325
- store_artifacts:
24-
path: sdk/lib/libserver_modloader.so
25-
destination: libserver_modloader.so
26+
path: artifacts/
27+
destination: /
2628
publish-github-release:
2729
docker:
2830
- image: cibuilds/github:0.10

0 commit comments

Comments
 (0)