Skip to content

Commit

Permalink
Add Binary Upload
Browse files Browse the repository at this point in the history
  • Loading branch information
vertigo235 committed Jan 21, 2022
1 parent d1dc935 commit 4c926cd
Showing 1 changed file with 38 additions and 1 deletion.
39 changes: 38 additions & 1 deletion .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ steps:
commands:
- cd $DRONE_WORKSPACE
- mkdir out
- mkdir fileshare
- cd $DRONE_WORKSPACE_BASE/PF-build-hex
- mv `find -name "*.zip"` $DRONE_WORKSPACE/out
- mv `find -name "*.hex"` $DRONE_WORKSPACE/out
Expand All @@ -50,10 +51,44 @@ steps:
- rm *.zip
- cd $DRONE_WORKSPACE
- bash rename_and_zip.sh
- cd $DRONE_WORKSPACE/fileshare
- zip -q -j bear_fw_$(git rev-parse --short HEAD).zip $DRONE_WORKSPACE/out/*.*
when:
event:
- tag
- push
depends_on:
- build-a-bear

- name: transfersh
image: vertigo235/fw-build:1
failure: ignore
commands:
- cd $DRONE_WORKSPACE/fileshare
- curl --upload-file bear_fw_$(git rev-parse --short HEAD).zip https://transfer.sh/prusa3d_fw_$(git rev-parse --short HEAD).zip
- echo
when:
event:
- push
- tag
- pull_request
depends_on:
- prepare-hex

- name: fileio
image: vertigo235/fw-build:1
failure: ignore
commands:
- cd $DRONE_WORKSPACE/fileshare
- curl -F "file=@bear_fw_$(git rev-parse --short HEAD).zip" https://file.io
- echo
when:
event:
- push
- tag
- pull_request
depends_on:
- prepare-hex

- name: publish
image: plugins/github-release
Expand All @@ -67,4 +102,6 @@ steps:
- out/*.*
when:
event:
- tag
- tag
depends_on:
- prepare-hex

0 comments on commit 4c926cd

Please sign in to comment.