Skip to content

Commit 550c4b8

Browse files
coderzcimbajin
andauthored
fix: release shell & enhance code (#220)
* fix release shell * chore: print hash in script and exit if upload failed Co-authored-by: imbajin <jin@apache.org>
1 parent dd1f82e commit 550c4b8

File tree

3 files changed

+41
-35
lines changed

3 files changed

+41
-35
lines changed

.asf.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ github:
2424
# Enable projects for project management boards
2525
projects: true
2626
description: HugeGraph Computer - A distributed graph processing system for hugegraph (OLAP)
27-
homepage: https://hugegraph.apache.org/
27+
homepage: https://hugegraph.apache.org/docs/quickstart/hugegraph-computer/
2828
del_branch_on_merge: true
2929
#labels:
3030

computer-dist/scripts/apache-release.sh

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,20 +28,23 @@ GIT_BRANCH="release-${RELEASE_VERSION}"
2828

2929
RELEASE_VERSION=${RELEASE_VERSION:?"Please input the release version behind script"}
3030

31-
WORK_DIR=$(cd "$(dirname "$0")" || exit; pwd)
31+
WORK_DIR=$(
32+
cd "$(dirname "$0")" || exit
33+
pwd
34+
)
3235
cd "${WORK_DIR}" || exit
3336
echo "In the work dir: $(pwd)"
3437

3538
# clean old dir then build a new one
36-
rm -rfv dist && mkdir -p dist/apache-${REPO}
39+
rm -rf dist && mkdir -p dist/apache-${REPO}
3740

3841
# step1: package the source code
39-
cd ../.../ || exit
42+
cd ../../ || exit
4043
git archive --format=tar.gz \
4144
--output="computer-dist/scripts/dist/apache-${REPO}/apache-${REPO}-incubating-${RELEASE_VERSION}-src.tar.gz" \
4245
--prefix="apache-${REPO}-incubating-${RELEASE_VERSION}-src/" "${GIT_BRANCH}" || exit
43-
4446
cd - || exit
47+
4548
# step2: copy the binary file (Optional)
4649
# Note: it's optional for project to generate binary package (skip this step if not need)
4750
cp -v ../../target/apache-${REPO}-incubating-"${RELEASE_VERSION}".tar.gz \
@@ -58,10 +61,11 @@ done
5861
##### 3.2 Generate SHA512 file
5962
shasum --version 1>/dev/null || exit
6063
for i in *.tar.gz; do
61-
echo "$i" && shasum -a 512 "$i" >"$i".sha512
64+
shasum -a 512 "$i" | tee "$i".sha512
6265
done
6366

6467
#### 3.3 check signature & sha512
68+
echo "#### start to check signature & hashcode ####"
6569
for i in *.tar.gz; do
6670
echo "$i"
6771
gpg --verify "$i".asc "$i" || exit
@@ -74,8 +78,8 @@ done
7478

7579
# step4: upload to Apache-SVN
7680
SVN_DIR="${GROUP}-svn-dev"
77-
cd ../
78-
rm -rfv ${SVN_DIR}
81+
cd ../ || exit
82+
rm -rf ${SVN_DIR}
7983

8084
##### 4.1 pull from remote & copy files
8185
svn co "https://dist.apache.org/repos/dist/dev/incubator/${GROUP}" ${SVN_DIR}
@@ -91,9 +95,10 @@ svn status
9195

9296
##### 4.3 commit & push files
9397
if [ "$USERNAME" = "" ]; then
94-
svn commit -m "submit files for ${REPO} ${RELEASE_VERSION}"
98+
svn commit -m "submit files for ${REPO} ${RELEASE_VERSION}" || exit
9599
else
96-
svn commit -m "submit files for ${REPO} ${RELEASE_VERSION}" --username "${USERNAME}" --password "${PASSWORD}"
100+
svn commit -m "submit files for ${REPO} ${RELEASE_VERSION}" \
101+
--username "${USERNAME}" --password "${PASSWORD}" || exit
97102
fi
98103

99104
echo "Finished all, please check all steps in script manually again!"

pom.xml

Lines changed: 26 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -44,37 +44,37 @@
4444
</licenses>
4545

4646
<developers>
47-
<developer>
48-
<id>Apache Hugegraph(incubating)</id>
49-
<email>dev-subscribe@hugegraph.apache.org</email>
50-
<url>https://hugegraph.apache.org/</url>
51-
</developer>
47+
<developer>
48+
<id>Apache Hugegraph(Incubating)</id>
49+
<email>dev-subscribe@hugegraph.apache.org</email>
50+
<url>https://hugegraph.apache.org/</url>
51+
</developer>
5252
</developers>
5353

5454
<mailingLists>
55-
<mailingList>
56-
<name>Development List</name>
57-
<subscribe>dev-subscribe@hugegraph.apache.org</subscribe>
58-
<unsubscribe>dev-unsubscribe@hugegraph.apache.org</unsubscribe>
59-
<post>dev@hugegraph.incubator.apache.org</post>
60-
</mailingList>
61-
<mailingList>
62-
<name>Commits List</name>
63-
<subscribe>commits-subscribe@hugegraph.apache.org</subscribe>
64-
<unsubscribe>commits-unsubscribe@hugegraph.apache.org</unsubscribe>
65-
<post>commits@hugegraph.apache.org</post>
66-
</mailingList>
67-
<mailingList>
68-
<name>Issues List</name>
69-
<subscribe>issues-subscribe@hugegraph.apache.org</subscribe>
70-
<unsubscribe>issues-unsubscribe@hugegraph.apache.org</unsubscribe>
71-
<post>issues@hugegraph.apache.org</post>
72-
</mailingList>
55+
<mailingList>
56+
<name>Development List</name>
57+
<subscribe>dev-subscribe@hugegraph.apache.org</subscribe>
58+
<unsubscribe>dev-unsubscribe@hugegraph.apache.org</unsubscribe>
59+
<post>dev@hugegraph.incubator.apache.org</post>
60+
</mailingList>
61+
<mailingList>
62+
<name>Commits List</name>
63+
<subscribe>commits-subscribe@hugegraph.apache.org</subscribe>
64+
<unsubscribe>commits-unsubscribe@hugegraph.apache.org</unsubscribe>
65+
<post>commits@hugegraph.apache.org</post>
66+
</mailingList>
67+
<mailingList>
68+
<name>Issues List</name>
69+
<subscribe>issues-subscribe@hugegraph.apache.org</subscribe>
70+
<unsubscribe>issues-unsubscribe@hugegraph.apache.org</unsubscribe>
71+
<post>issues@hugegraph.apache.org</post>
72+
</mailingList>
7373
</mailingLists>
7474

7575
<issueManagement>
76-
<system>Github Issues</system>
77-
<url>https://github.com/apache/hugegraph-computer/issues</url>
76+
<system>Github Issues</system>
77+
<url>https://github.com/apache/hugegraph-computer/issues</url>
7878
</issueManagement>
7979

8080
<scm>
@@ -527,6 +527,7 @@
527527
</build>
528528
</profile>
529529
</profiles>
530+
530531
<repositories>
531532
<repository>
532533
<id>staged-releases</id>

0 commit comments

Comments
 (0)