Skip to content

Commit 16a0483

Browse files
committed
fix: ci
1 parent 9fd9306 commit 16a0483

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,11 @@ jobs:
145145

146146
- name: Prepare Distribution Files
147147
id: prepare-distribution
148-
run: |
149-
bash ./scripts/build/prepare-dist.sh --silent
150-
bash ./scripts/build/upload-dist.sh ${{ env.PLUGIN_NAME }}
148+
run: bash ./scripts/build/prepare-dist.sh --silent
149+
150+
151+
- name: Upload to database
152+
run: bash ./scripts/build/upload-dist.sh ${{ env.PLUGIN_NAME }}
151153

152154
- name: Upload Plugin Artifact
153155
uses: actions/upload-artifact@v4

scripts/build/prepare-dist.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ log_message "notice" "Computing plugin metadata..."
5959
echo "{\"commit\": \"$(git rev-parse HEAD)\", \"id\": \"$(git rev-list --max-parents=0 HEAD)\"}" > dist/metadata.json
6060

6161
PLUGIN_NAME=$(jq -r '.name' plugin.json) || { log_message "error" "name not found in plugin.json"; exit 1; }
62-
echo "PLUGIN_NAME=$PLUGIN_NAME" >> "$GITHUB_ENV"
62+
echo "PLUGIN_NAME=$PLUGIN_NAME" >> $GITHUB_ENV
6363

6464
mkdir -p dist/"$PLUGIN_NAME"
6565
mv dist/{*,.*} dist/"$PLUGIN_NAME" 2>/dev/null

scripts/build/upload-dist.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@ PLUGIN_NAME=$1
55

66
cd dist
77

8-
echo "::debug::Building plugin archive..."
8+
echo "Building plugin archive..."
99
zip -r "$PLUGIN_NAME.zip" .
1010

11-
echo "::debug::Successfully built plugin."
11+
echo "Successfully built plugin."
1212

1313
id=$(jq -r '.id' "$PLUGIN_NAME"/metadata.json) || { echo "::error::Failed to extract id from $PLUGIN_NAME/metadata.json"; exit 1; }
1414

15-
echo "::debug::Uploading plugin to database..."
15+
echo "Uploading plugin to database with id $id"
1616
gsutil cp "$PLUGIN_NAME.zip" gs://millennium-d9ce0.appspot.com/plugins/"$id.zip"
17-
echo "::debug::Successfully uploaded plugin to database."
17+
echo "Successfully uploaded plugin to database."
1818
rm "$PLUGIN_NAME.zip"
1919

2020
echo "::endgroup::"

0 commit comments

Comments
 (0)