From 49d351f932d1eb3b1d82432153074c585560ecf9 Mon Sep 17 00:00:00 2001 From: Josh Stewart Date: Fri, 20 Aug 2021 18:55:49 +1000 Subject: [PATCH] Add server upload to build Action --- .github/workflows/build-firmware.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/build-firmware.yml b/.github/workflows/build-firmware.yml index 40de00dc..4969f078 100644 --- a/.github/workflows/build-firmware.yml +++ b/.github/workflows/build-firmware.yml @@ -36,3 +36,15 @@ jobs: - name: Run PlatformIO run: platformio run -e teensy35 -e teensy36 -e teensy41 -e black_F407VE -e megaatmega2561 -e megaatmega2560 + + - name: Upload to Speeduino server + if: github.ref == 'refs/heads/master' + env: + WEB_PWD: ${{ secrets.WEB_PWD }} + run: | + curl -v https://speeduino.com:2078 || true + curl -v --tlsv1.2 --ipv4 --user "speeduino_firmware@speeduino.com:$WEB_PWD" --basic -T "./.pio/build/megaatmega2560/firmware.hex" "https://speeduino.com:2078/bin/master.hex" + curl -v --tlsv1.2 --ipv4 --user "speeduino_firmware@speeduino.com:$WEB_PWD" --basic -T "./.pio/build/teensy35/firmware.hex" "https://speeduino.com:2078/teensy35/master-teensy35.hex" + curl -v --tlsv1.2 --ipv4 --user "speeduino_firmware@speeduino.com:$WEB_PWD" --basic -T "./.pio/build/teensy36/firmware.hex" "https://speeduino.com:2078/teensy36/master-teensy36.hex" + curl -v --tlsv1.2 --ipv4 --user "speeduino_firmware@speeduino.com:$WEB_PWD" --basic -T "./.pio/build/teensy41/firmware.hex" "https://speeduino.com:2078/teensy41/master-teensy41.hex" + curl --tlsv1.2 --ipv4 --user "speeduino_firmware@speeduino.com:$WEB_PWD" --basic -T "./reference/speeduino.ini" "https://speeduino.com:2078/master.ini"