File tree Expand file tree Collapse file tree 3 files changed +10
-8
lines changed
Expand file tree Collapse file tree 3 files changed +10
-8
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ log_message "notice" "Computing plugin metadata..."
5959echo " {\" commit\" : \" $( git rev-parse HEAD) \" , \" id\" : \" $( git rev-list --max-parents=0 HEAD) \" }" > dist/metadata.json
6060
6161PLUGIN_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
6464mkdir -p dist/" $PLUGIN_NAME "
6565mv dist/{* ,.* } dist/" $PLUGIN_NAME " 2> /dev/null
Original file line number Diff line number Diff line change @@ -5,16 +5,16 @@ PLUGIN_NAME=$1
55
66cd dist
77
8- echo " ::debug:: Building plugin archive..."
8+ echo " Building plugin archive..."
99zip -r " $PLUGIN_NAME .zip" .
1010
11- echo " ::debug:: Successfully built plugin."
11+ echo " Successfully built plugin."
1212
1313id=$( 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 "
1616gsutil 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."
1818rm " $PLUGIN_NAME .zip"
1919
2020echo " ::endgroup::"
You can’t perform that action at this time.
0 commit comments