Skip to content

Commit

Permalink
Update gh-release-artifact (#1311)
Browse files Browse the repository at this point in the history
- Never overwrite artifact
- Publish sha256 file along with artifact
  • Loading branch information
borkdude committed Oct 6, 2022
1 parent da98b04 commit 3d59bfe
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bb.edn
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{:paths ["scripts"
"cli/integration-test"]
:deps {borkdude/gh-release-artifact {:git/url "https://github.com/borkdude/gh-release-artifact"
:sha "cf082df46a648178d1904e9cbcb787d8136a35c6"}
:git/sha "ce060c12a25b552b864dc90f8fb344a2eb91ea9d"}

medley/medley {:mvn/version "1.4.0"}
com.github.clojure-lsp/lsp4clj {:mvn/version "1.3.1"}
Expand Down
8 changes: 6 additions & 2 deletions scripts/clojure_lsp/release_artifact.clj
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,19 @@
(ghr/overwrite-asset {:org "clojure-lsp"
:repo "clojure-lsp"
:file file
:tag tag}))
:tag tag
:overwrite false
:sha256 true}))

latest-dev-tag
(do
(println "Uploading dev-release binary for tag:" latest-dev-tag)
(ghr/overwrite-asset {:org "clojure-lsp"
:repo "clojure-lsp-dev-builds"
:file file
:tag latest-dev-tag}))
:tag latest-dev-tag
:overwrite false
:sha256 true}))

:else
(println "No prod or dev tags found!"))
Expand Down

0 comments on commit 3d59bfe

Please sign in to comment.