Skip to content

Commit ac03c08

Browse files
committed
Improve the SQLite plugin build asset naming
1 parent d13e51f commit ac03c08

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/release-prepare.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,9 +113,9 @@ jobs:
113113
RELEASE_TAG: ${{ github.event.release.tag_name }}
114114
run: |
115115
# Remove any previously uploaded zip.
116-
gh release delete-asset "$RELEASE_TAG" "sqlite-database-integration.zip" --yes 2>/dev/null || true
116+
gh release delete-asset "$RELEASE_TAG" "plugin-sqlite-database-integration.zip" --yes 2>/dev/null || true
117117
# Upload the new zip.
118-
gh release upload "$RELEASE_TAG" "build/sqlite-database-integration.zip"
118+
gh release upload "$RELEASE_TAG" "build/plugin-sqlite-database-integration.zip"
119119
120120
- name: Create or update pull request
121121
id: pr

bin/build-sqlite-plugin-zip.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@
33
##
44
# Build the SQLite Database Integration plugin zip.
55
#
6-
# This script copies the plugin package into ./build/sqlite-database-integration/,
6+
# This script copies the plugin package into ./build/plugin-sqlite-database-integration/,
77
# resolves the driver symlink, removes dev-only files, and creates a zip archive.
88
##
99

1010
set -e
1111

1212
DIR="$(cd "$(dirname "$0")/.." && pwd)"
1313
BUILD_DIR="$DIR/build"
14-
PLUGIN_DIR="$BUILD_DIR/sqlite-database-integration"
15-
ZIP_FILE="$BUILD_DIR/sqlite-database-integration.zip"
14+
PLUGIN_DIR="$BUILD_DIR/plugin-sqlite-database-integration"
15+
ZIP_FILE="$BUILD_DIR/plugin-sqlite-database-integration.zip"
1616

1717
# Clean previous build.
1818
rm -rf "$PLUGIN_DIR"
@@ -36,6 +36,6 @@ bash "$DIR/bin/verify-release-metadata.sh" "$PLUGIN_DIR"
3636

3737
# Create the zip archive.
3838
cd "$BUILD_DIR"
39-
zip -r "$ZIP_FILE" "sqlite-database-integration/" -x "*.DS_Store"
39+
zip -r "$ZIP_FILE" "$(basename "$PLUGIN_DIR")/" -x "*.DS_Store"
4040

4141
echo "Built: $ZIP_FILE"

0 commit comments

Comments
 (0)