dagger -m github.com/frantjc/daggerverse/release@aaac84bef0a3b1eee3e0a8a171affae759fc18fa call \
create --github-token env:MYSECRET --github-repo string --name string --goos string1 --goos string2 --goarch string1 --goarch string2
func (m *MyModule) Example(ctx context.Context, src *dagger.GitRef, githubToken *dagger.Secret, githubRepo string, name string, goos []string, goarch []string) {
return dag.
Release(src).
Create(ctx, githubToken, githubRepo, name, goos, goarch)
}
@function
async def example(src: dagger.GitRef, github_token: dagger.Secret, github_repo: str, name: str, goos: List[str], goarch: List[str]) -> None:
return await (
dag.release(src)
.create(github_token, github_repo, name, goos, goarch)
)
@func()
async example(src: GitRef, githubToken: Secret, githubRepo: string, name: string, goos: string[], goarch: string[]): Promise<void> {
return dag
.release(src)
.create(githubToken, githubRepo, name, goos, goarch)
}