auto deployment (#479)
This commit is contained in:
1 parent
27c36a5908
commit
21773300ec
1 file changed
+21
-4
+21
-4
@@ -27,20 +27,37 @@ matrix:
|
|||||||
include:
|
include:
|
||||||
- language: python
|
- language: python
|
||||||
python: 2.7
|
python: 2.7
|
||||||
|
|
||||||
sudo: false
|
sudo: false
|
||||||
cache:
|
cache:
|
||||||
directories:
|
directories:
|
||||||
- "~/.platformio"
|
- "~/.platformio"
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- pip install -U platformio
|
- pip install -U platformio
|
||||||
- platformio update
|
- platformio update
|
||||||
- rm /home/travis/build/1technophile/OpenMQTTGateway/main//User_config.h
|
- rm /home/travis/build/1technophile/OpenMQTTGateway/main/User_config.h
|
||||||
- cp /home/travis/build/1technophile/OpenMQTTGateway/test/Test_config.h /home/travis/build/1technophile/OpenMQTTGateway/main//User_config.h
|
- cp /home/travis/build/1technophile/OpenMQTTGateway/test/Test_config.h /home/travis/build/1technophile/OpenMQTTGateway/main//User_config.h
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- platformio run
|
- platformio run
|
||||||
|
- rename -v 's:/:-:g' .pio/build/*/*.bin
|
||||||
|
- mkdir toDeploy
|
||||||
|
- rename 's/.pio-build-//' .*.bin
|
||||||
|
- mv *.bin toDeploy
|
||||||
|
- cd toDeploy
|
||||||
|
- ls -la
|
||||||
|
- cd ..
|
||||||
|
before_deploy: ls -a
|
||||||
|
deploy:
|
||||||
|
on:
|
||||||
|
repo: 1technophile/OpenMQTTGateway
|
||||||
|
all_branches: true
|
||||||
|
tags: true
|
||||||
|
provider: releases
|
||||||
|
overwrite: true
|
||||||
|
api_key: $GITHUB_TOKEN
|
||||||
|
file_glob: true
|
||||||
|
file:
|
||||||
|
- toDeploy/*
|
||||||
|
skip_cleanup: true
|
||||||
|
|
||||||
- language: node_js
|
- language: node_js
|
||||||
node_js:
|
node_js:
|
||||||
|
|||||||
Reference in new issue
Block a user