Add server upload to build Action
This commit is contained in:
parent
7aec487387
commit
49d351f932
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue