Skip to content

Commit

Permalink
Merge pull request #29 from liquibase/DAT-14457
Browse files Browse the repository at this point in the history
DAT-14457 Pro Extensions are failing to release due to build-logic bugs
  • Loading branch information
jandroav authored Apr 17, 2023
2 parents 9f42c32 + c7c7c6f commit b3c17af
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 12 deletions.
8 changes: 2 additions & 6 deletions .github/upload_asset.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,12 @@ upload_asset() {

declare -a StringArray=(".jar" ".jar.asc" ".jar.md5" ".jar.sha1" \
".pom" ".pom.asc" ".pom.md5" ".pom.sha1" \
".zip" \
"-javadoc.jar" "-javadoc.jar.asc" "-javadoc.jar.md5" "-javadoc.jar.sha1" \
"-sources.jar" "-sources.jar.asc" "-sources.jar.md5" "-sources.jar.sha1" )

for val in "${StringArray[@]}"; do
FILE=$ASSET_DIR/$ASSET_NAME_PREFIX$VERSION$val
# Skip if zip files do not exist (some extensions do not generate examples in zip format)
if [[ ! -f "$FILE" && "$FILE" != *".zip" ]]; then
if [[ ! -f "$FILE" ]]; then
echo "$FILE does not exist."
exit 1
fi
Expand All @@ -57,6 +55,4 @@ for val in "${StringArray[@]}"; do
fi
MIME=$(file -b --mime-type $FILE)
upload_asset $FILE $SIZE $MIME
done


done
2 changes: 1 addition & 1 deletion .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:

jobs:
sonar:
uses: liquibase/build-logic/.github/workflows/sonar-push.yml@main
uses: liquibase/build-logic/.github/workflows/sonar-push.yml@v0.3.1
secrets: inherit

create-release:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/extension-attach-artifact-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ jobs:

- name: Get Reusable Script Files
run: |
curl -o $PWD/.github/get_draft_release.sh https://raw.githubusercontent.com/liquibase/build-logic/main/.github/get_draft_release.sh
curl -o $PWD/.github/sign_artifact.sh https://raw.githubusercontent.com/liquibase/build-logic/main/.github/sign_artifact.sh
curl -o $PWD/.github/upload_asset.sh https://raw.githubusercontent.com/liquibase/build-logic/main/.github/upload_asset.sh
curl -o $PWD/.github/get_draft_release.sh https://raw.githubusercontent.com/liquibase/build-logic/v0.3.1/.github/get_draft_release.sh
curl -o $PWD/.github/sign_artifact.sh https://raw.githubusercontent.com/liquibase/build-logic/v0.3.1/.github/sign_artifact.sh
curl -o $PWD/.github/upload_asset.sh https://raw.githubusercontent.com/liquibase/build-logic/v0.3.1/.github/upload_asset.sh
chmod +x $PWD/.github/get_draft_release.sh
chmod +x $PWD/.github/sign_artifact.sh
chmod +x $PWD/.github/upload_asset.sh
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/os-extension-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,5 +78,5 @@ jobs:
sonar-pr:
needs: [ unit-test ]
uses: liquibase/build-logic/.github/workflows/sonar-pull-request.yml@v0.2.4
uses: liquibase/build-logic/.github/workflows/sonar-pull-request.yml@v0.3.1
secrets: inherit
2 changes: 1 addition & 1 deletion .github/workflows/pro-extension-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,5 +97,5 @@ jobs:
sonar-pr:
needs: [ unit-test ]
uses: liquibase/build-logic/.github/workflows/sonar-pull-request.yml@v0.2.4
uses: liquibase/build-logic/.github/workflows/sonar-pull-request.yml@v0.3.1
secrets: inherit

0 comments on commit b3c17af

Please sign in to comment.