Browse Source

Scripts: call `wandbox/publish.sh` from `get-release-page.sh`

Benoit Blanchon 2 years ago
parent
commit
371fa4667e
2 changed files with 3 additions and 4 deletions
  1. 2 2
      extras/scripts/get-release-page.sh
  2. 1 2
      extras/scripts/publish.sh

+ 2 - 2
extras/scripts/get-release-page.sh

@@ -4,14 +4,14 @@ set -eu
 
 VERSION="$1"
 CHANGELOG="$2"
-FRONTMATTER="$3"
+ARDUINOJSON_H="$3"
 
 cat << END
 ---
 branch: v6
 version: $VERSION
 date: '$(date +'%Y-%m-%d')'
-$(cat "$FRONTMATTER")
+$(extras/scripts/wandbox/publish.sh "$ARDUINOJSON_H")
 ---
 
 $(awk '/\* /{ FOUND=1; print; next } { if (FOUND) exit}' "$CHANGELOG")

+ 1 - 2
extras/scripts/publish.sh

@@ -73,7 +73,6 @@ push
 extras/scripts/build-arduino-package.sh . "../ArduinoJson-$TAG.zip"
 extras/scripts/build-single-header.sh "src/ArduinoJson.h" "../ArduinoJson-$TAG.h"
 extras/scripts/build-single-header.sh "src/ArduinoJson.hpp" "../ArduinoJson-$TAG.hpp"
-extras/scripts/wandbox/publish.sh "../ArduinoJson-$TAG.h" > "../ArduinoJson-$TAG-wandbox.txt" || echo "Wandbox failed!"
-extras/scripts/get-release-page.sh "$VERSION" "CHANGELOG.md" "../ArduinoJson-$TAG-wandbox.txt" > "../ArduinoJson-$TAG.md"
+extras/scripts/get-release-page.sh "$VERSION" "CHANGELOG.md" "../ArduinoJson-$TAG.h" > "../ArduinoJson-$TAG.md"
 
 echo "You can now copy ../ArduinoJson-$TAG.md into arduinojson.org/collections/_versions/$VERSION.md"