Skip to content

Commit 53eca63

Browse files
chore: update release process
1 parent 3470750 commit 53eca63

2 files changed

Lines changed: 6 additions & 13 deletions

File tree

.github/upload-to-s3.sh

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,6 @@ if [ $# -eq 2 ]; then
3535
DRY_RUN=--dryrun
3636
fi
3737

38-
if [ $# -gt 2 ]; then
39-
echo "Too many parameters"
40-
echo "Usage: upload-to-s3.sh <release-channel> <dryrun>"
41-
exit 1
42-
fi
43-
4438
function uploadFile() {
4539
FILENAME_SRC=$1
4640
FILENAME_DST=$2
@@ -49,11 +43,11 @@ function uploadFile() {
4943
[ ! -d "$FILENAME_SRC" ] && echo "Directory $FILENAME_SRC does not exist." && exit 1
5044

5145
# shellcheck disable=SC2086
52-
aws s3 cp --recursive $DRY_RUN "$FILENAME_SRC" "s3://$AWS_S3_BUCKET_NAME/$BASE/$FILENAME_DST"
46+
aws s3 cp $DRY_RUN "$FILENAME_SRC" "s3://$AWS_S3_BUCKET_NAME/$BASE/$FILENAME_DST"
5347
}
5448

5549
# publish repo
56-
FILENAME_SRC="$SCRIPT_DIR/../update-site/target/repository"
50+
FILENAME_SRC="$SCRIPT_DIR/../update-site/target/repository/"
5751
FILENAME_DST="$RELEASE_CHANNEL"
5852
# shellcheck disable=SC2086
5953
uploadFile $FILENAME_SRC $FILENAME_DST $DRY_RUN

.github/workflows/ci.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ jobs:
1616
matrix:
1717
os: [ubuntu-latest, macos-latest, windows-latest]
1818
steps:
19-
- uses: actions/checkout@v4
19+
- uses: actions/checkout@v2
2020
- name: Set up JDK
21-
uses: actions/setup-java@v4
21+
uses: actions/setup-java@v2
2222
with:
2323
java-version: "17"
24-
distribution: "temurin"
24+
distribution: "zulu"
2525
cache: maven
2626

2727
- name: Decode Keystore
@@ -30,10 +30,9 @@ jobs:
3030
env:
3131
fileName: ./keystore.jks
3232
encodedString: ${{ secrets.KEYSTORE }}
33-
sha: ${{ secrets.KEYSTORE_SHA }}
3433
run: |
3534
echo "$encodedString" | base64 -d > $fileName
36-
echo "$sha $fileName" > sha256.txt
35+
echo "6cab9fa86689a9969097a662891fe8a1d8752ac430c18750cfa4d230744ac4a7 $fileName" > sha256.txt
3736
sha256sum -c sha256.txt
3837
3938
- name: Build with Maven

0 commit comments

Comments
 (0)