Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/borkdude/gh-release-artifact
Upload artifacts to Github releases idempotently
https://github.com/borkdude/gh-release-artifact
babashka clojure github
Last synced: 4 months ago
JSON representation
Upload artifacts to Github releases idempotently
- Host: GitHub
- URL: https://github.com/borkdude/gh-release-artifact
- Owner: borkdude
- License: mit
- Created: 2021-04-20T19:34:49.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-03-18T15:39:43.000Z (almost 2 years ago)
- Last Synced: 2024-10-04T12:58:32.411Z (4 months ago)
- Topics: babashka, clojure, github
- Language: Clojure
- Homepage:
- Size: 42 KB
- Stars: 25
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# gh-release-artifact
A babashka and Clojure lib to deploy artifacts to Github releases.
For this to work you need to set an environment variable named
`GITHUB_TOKEN` with your personal access token. You can create
the token on github.com under your profile:
Settings -> Developer settings -> Personal access tokens.See [API.md](API.md) for the API.
Use within babashka as follows. Add to `deps.edn` or `bb.edn`:
```
{:deps {io.github.borkdude/gh-release-artifact {:git/sha "05f8d8659e6805d513c59447ff41dc8497878462"}}}
```Then in your code:
``` clojure
(require '[borkdude.gh-release-artifact :as ghr])(ghr/release-artifact {:org "borkdude"
:repo "test-repo"
:tag "v0.0.15"
:commit "8495a6b872637ea31879c5d56160b8d8e94c9d1c"
:file "README.md"
:sha256 true
:overwrite true})
```## License
Copyright © 2021 - 2022 Michiel Borkent
Distributed under the MIT License. See LICENSE.