<!-- Code generated by gomarkdoc. DO NOT EDIT -->

In Development Package, API may change between versions.

import "github.com/egdaemon/eg/runtime/x/wasi/eggithub"

<a name="DownloadURL"></a>

func DownloadURL

func DownloadURL(pattern string) string

generate the github download url

<a name="PatternVersion"></a>

func PatternVersion

func PatternVersion() string

provides the version pattern based on a github commit.

<a name="Release"></a>

func Release

func Release(patterns ...string) eg.OpFn

Release to github, this is very experimental. WARNING: for local environments this assumes you've provided the token to the eg command. e.g.) GH_TOKEN="$(gh auth token)" eg compute local -e GH_TOKEN WARNING: for hosted environments: we've assumed the git auth access token for pulling the repository will work. this has not yet been validated. and likely needs permission updates.

<a name="ReleaseIdempotent"></a>

func ReleaseIdempotent

func ReleaseIdempotent(patterns ...string) eg.OpFn

ReleaseIdempotent to github, this is experimental. it will delete any release with the same version effectively replacing it. this is to make the function idempotent. WARNING: for local environments this assumes you've provided the token to the eg command. e.g.) GH_TOKEN="$(gh auth token)" eg compute local -e GH_TOKEN WARNING: for hosted environments: we've assumed the git auth access token for pulling the repository will work. this has not yet been validated. and likely needs permission updates.

<a name="Upload"></a>

func Upload

func Upload(release string, patterns ...string) eg.OpFn

Upload an asset to a github release, this is very experimental. WARNING: for local environments this assumes you've provided the token to the eg command. e.g.) GH_TOKEN="$(gh auth token)" eg compute local -e GH_TOKEN WARNING: for hosted environments: we've assumed the git auth access token for pulling the repository will work. this has not yet been validated. and likely needs permission updates. Usage:

eggithub.Upload(eggithub.PatternVersion(), "foo.txt", "bar.txt")