Skip to content

Commit

Permalink
Pipeline update
Browse files Browse the repository at this point in the history
  • Loading branch information
Vedran Mikov committed Nov 15, 2020
1 parent 15e6a13 commit 4d0d15c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
11 changes: 8 additions & 3 deletions .drone-github.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ steps:
- "rm release/*.o release/*.cpp release/*.h release/*.qrc"
- "cp ../LICENSE release/LICENSE.txt"
- "cp ../README.md release/README.md"
- "zip -jr Data_dashboard-${DRONE_TAG##v}-win64.zip release/"
- "cp ../config.ini release/config.ini"
- "mv release Data_dashboard-${DRONE_TAG##v}-win64"
- "zip -r Data_dashboard-${DRONE_TAG##v}-win64.zip Data_dashboard-${DRONE_TAG##v}-win64/"
when:
event:
- tag
Expand All @@ -35,9 +37,12 @@ steps:
- "/opt/qt5.11/amd64/bin/qmake -config release ../datadashboard.pro"
- "make -j4"
- "cqtdeployer -qmake /opt/qt5.11/amd64/bin/qmake -bin datadashboard"
- "cp /usr/lib/x86_64-linux-gnu/libpng12.so.0 DistributionKit/lib"
- "cp ../LICENSE DistributionKit/LICENSE.txt"
- "cp ../README.md DistributionKit/README.md"
- "cd DistributionKit && zip -r Data_dashboard-${DRONE_TAG##v}-ubuntu-amd64.zip *"
- "cp ../config.ini DistributionKit/config.ini"
- "mv DistributionKit Data_dashboard-${DRONE_TAG##v}-ubuntu-amd64"
- "zip -r Data_dashboard-${DRONE_TAG##v}-ubuntu-amd64.zip Data_dashboard-${DRONE_TAG##v}-ubuntu-amd64/"
when:
event:
- tag
Expand All @@ -50,7 +55,7 @@ steps:
from_secret: github_api_key
files:
- "/workspace/dataDashboard/build-win64/Data_dashboard-${DRONE_TAG##v}-win64.zip"
- "/workspace/dataDashboard/build-amd64/DistributionKit/Data_dashboard-${DRONE_TAG##v}-ubuntu-amd64.zip"
- "/workspace/dataDashboard/build-amd64/Data_dashboard-${DRONE_TAG##v}-ubuntu-amd64.zip"
checksum:
- md5
- sha1
Expand Down
11 changes: 8 additions & 3 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ steps:
- "rm release/*.o release/*.cpp release/*.h release/*.qrc"
- "cp ../LICENSE release/LICENSE.txt"
- "cp ../README.md release/README.md"
- "zip -jr Data_dashboard-${DRONE_TAG##v}-win64.zip release/"
- "cp ../config.ini release/config.ini"
- "mv release Data_dashboard-${DRONE_TAG##v}-win64"
- "zip -r Data_dashboard-${DRONE_TAG##v}-win64.zip Data_dashboard-${DRONE_TAG##v}-win64/"
when:
event:
- tag
Expand All @@ -35,9 +37,12 @@ steps:
- "/opt/qt5.11/amd64/bin/qmake -config release ../datadashboard.pro"
- "make -j4"
- "cqtdeployer -qmake /opt/qt5.11/amd64/bin/qmake -bin datadashboard"
- "cp /usr/lib/x86_64-linux-gnu/libpng12.so.0 DistributionKit/lib"
- "cp ../LICENSE DistributionKit/LICENSE.txt"
- "cp ../README.md DistributionKit/README.md"
- "cd DistributionKit && zip -r Data_dashboard-${DRONE_TAG##v}-ubuntu-amd64.zip *"
- "cp ../config.ini DistributionKit/config.ini"
- "mv DistributionKit Data_dashboard-${DRONE_TAG##v}-ubuntu-amd64"
- "zip -r Data_dashboard-${DRONE_TAG##v}-ubuntu-amd64.zip Data_dashboard-${DRONE_TAG##v}-ubuntu-amd64/"
when:
event:
- tag
Expand All @@ -51,7 +56,7 @@ steps:
base_url: https://git.vedran.ml
files:
- "/workspace/dataDashboard/build-win64/Data_dashboard-${DRONE_TAG##v}-win64.zip"
- "/workspace/dataDashboard/build-amd64/DistributionKit/Data_dashboard-${DRONE_TAG##v}-ubuntu-amd64.zip"
- "/workspace/dataDashboard/build-amd64/Data_dashboard-${DRONE_TAG##v}-ubuntu-amd64.zip"
checksum:
- md5
- sha1
Expand Down

0 comments on commit 4d0d15c

Please sign in to comment.