From 878dcfaeb83d7936cbfb626e21ed7a287fbaf65e Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Thu, 20 Apr 2023 09:43:04 +0800 Subject: [PATCH] Add release action (#261) Reviewed-on: https://gitea.com/gitea/blog/pulls/261 Reviewed-by: Zettat123 Reviewed-by: Jason Song Co-authored-by: Lunny Xiao Co-committed-by: Lunny Xiao --- content/post/creating-go-actions.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/content/post/creating-go-actions.md b/content/post/creating-go-actions.md index 6d51f5d..0c3bf86 100644 --- a/content/post/creating-go-actions.md +++ b/content/post/creating-go-actions.md @@ -12,7 +12,7 @@ draft: false Gitea's CI system, Gitea Actions, was recently released in version 1.19.0. Gitea Actions is an internal CI/CD system, offering near compatibility with GitHub Actions. One key difference is that Gitea supports both Go and JavaScript actions, while GitHub only supports JavaScript actions natively (though you can use any programming language for Docker container actions). Go actions provide a way for gophers who are not familiar with JavaScript to create native actions. -However, compared to JavaScript actions, Go actions may be slower because they need to be built as executables before running. +However, compared to JavaScript actions, Go actions may be slower because they need to be built as executables before running. But you don't need to put the generated javascript files into dist in a Go action. In this guide, we'll show you how to create a Go action in Gitea. Before diving in, you should have a basic understanding of Gitea Actions. If you're not familiar with it, we recommend reading [Hacking on Gitea Actions](https://blog.gitea.io/2023/03/hacking-on-gitea-actions/). @@ -305,3 +305,5 @@ We can work together to make Gitea Actions even better. You can find the demo code in the following repositories: - simple-go-action: https://gitea.com/Zettat123/simple-go-action - test-simple-go-action: https://gitea.com/Zettat123/test-simple-go-action + +And there is also a usable go action to publish release to Gitea https://gitea.com/actions/release-action