This commit is contained in:
Lunny Xiao 2023-04-20 09:19:39 +08:00
parent ec78ab5880
commit 3580a9879e
No known key found for this signature in database
GPG key ID: C3B7C91B632F738A

View file

@ -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. But you don't need to put the generated jascript files into dist in a Go action.
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/).