Skip to content

Commit 65b8eb4

Browse files
committed
Only deploy generated artefacts from the main branch in CircleCI. Fixes #237
1 parent f88c421 commit 65b8eb4

File tree

2 files changed

+34
-11
lines changed

2 files changed

+34
-11
lines changed

.circleci/config.yml

Lines changed: 30 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,29 @@ workflows:
1010
filters:
1111
branches:
1212
ignore:
13-
- stable
14-
- v0.3.3
1513
- sigmod2014contest
1614
- gh-pages
15+
- deploy:
16+
requires:
17+
- test
18+
filters:
19+
branches:
20+
only: main
1721

18-
jobs:
19-
test:
20-
resource_class: xlarge
21-
working_directory: ~/ldbc/ldbc_snb_datagen
22+
executors:
23+
my-executor:
2224
machine:
2325
image: ubuntu-2004:202008-01
26+
working_directory: ~/ldbc/ldbc_snb_datagen
2427

28+
jobs:
29+
test:
30+
resource_class: xlarge
31+
executor: my-executor
2532
steps:
2633
- checkout
2734
- run: |
35+
mkdir out/
2836
DEBIAN_FRONTEND=noninteractive
2937
sudo apt update
3038
sudo apt install -y openjdk-8-jdk zip
@@ -56,11 +64,23 @@ jobs:
5664
- run: tools/docker-run.sh --mode bi --scale-factor 0.003 --explode-edges
5765
- run: tools/docker-run.sh --mode bi --scale-factor 0.003
5866
- run: |
59-
# deploy CircleCI configuration to provide 'filters' instructions (and prevent failed build on gh-pages)
60-
cp -r .circleci dist/
67+
# deploy CircleCI configuration to provide the 'filters' instructions (and prevent failed builds on the gh-pages branch)
68+
mv .circleci dist/
6169
# currently we only deploy a single data set (the last generated one)
62-
mv out social_network-bi
70+
mv out/ social_network-bi/
6371
zip -r dist/social_network-bi.zip social_network-bi/
72+
- persist_to_workspace:
73+
# Must be an absolute path, or relative path from working_directory. This is a directory on the container which is
74+
# taken to be the root directory of the workspace.
75+
root: .
76+
# Must be relative path from root
77+
paths:
78+
- dist/
79+
- slack/status
80+
deploy:
81+
executor: my-executor
82+
steps:
83+
- attach_workspace:
84+
at: ~/ldbc/ldbc_snb_datagen
6485
- gh-pages/deploy:
6586
ssh-fingerprints: '60:8f:35:48:99:c0:ae:9f:71:6b:a9:66:19:21:95:7d'
66-
- slack/status

dist/README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
# README
1+
# LDBC SNB Datagen (Spark variant) – Latest artefacts
2+
3+
This README is deployed to <http://ldbc.github.io/ldbc_snb_datagen_spark>.
4+
25
## Generated data sets
36

47
The following data sets are generated for the `dev` variant, to be used for the BI workload.

0 commit comments

Comments
 (0)