-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: golang function based on tencent cloud
- Loading branch information
0 parents
commit 0f5c280
Showing
5 changed files
with
529 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# yuque-github-hook | ||
|
||
> Only for private use. | ||
Use [Repository Dispatch Event](https://docs.github.com/en/rest/reference/repos#create-a-repository-dispatch-event) to trigger Github Action. | ||
|
||
## Usage | ||
|
||
- clear building | ||
|
||
```bash | ||
go clean | ||
``` | ||
|
||
- build | ||
|
||
```bash | ||
GOOS=linux GOARCH=amd64 go build -o main main.go | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
module yuque-github-hook | ||
|
||
go 1.15 | ||
|
||
require ( | ||
github.com/google/go-github/v35 v35.2.0 | ||
github.com/tencentyun/scf-go-lib v0.0.0-20200624065115-ba679e2ec9c9 | ||
golang.org/x/oauth2 v0.0.0-20210427180440-81ed05c6b58c | ||
) |
Oops, something went wrong.