Skip to content

Commit

Permalink
udpate README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
tsirysndr committed Dec 18, 2023
1 parent 0c22654 commit a581c0e
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 143 deletions.
20 changes: 15 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,18 +37,28 @@ dagger mod install github.com/fluent-ci-templates/github-pipeline@mod
|----------------|------------------------------------------------------------|
| release_upload | Uploads a file to a github release |

```graphql
releaseUpload(file: String!, src: String, tag: String!, token: String!): String
```typescript
releaseUpload(
src: string | Directory,
tag: string,
file: string,
token: string | Secret
): Promise<string>
```

## Programmatic usage

You can also use this pipeline programmatically:

```typescript
import { releaseUpload } from "https://pkg.fluentci.io/github_pipeline@v0.3.0/mod.ts";

await releaseUpload();
import { releaseUpload } from "https://pkg.fluentci.io/github_pipeline@v0.4.0/mod.ts";

await releaseUpload(
".",
Deno.env.get("TAG") || "latest",
Deno.env.get("FILE")!,
Deno.env.get("GH_TOKEN")!
);
```

## Examples
Expand Down
2 changes: 1 addition & 1 deletion ci.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import { releaseUpload } from "https://pkg.fluentci.io/github_pipeline@v0.3.0/mod.ts";
import { releaseUpload } from "https://pkg.fluentci.io/github_pipeline@v0.4.0/mod.ts";

await releaseUpload();
137 changes: 0 additions & 137 deletions gen/nexus.ts

This file was deleted.

0 comments on commit a581c0e

Please sign in to comment.