Add release action (#261)

Reviewed-on: https://gitea.com/gitea/blog/pulls/261
Reviewed-by: Zettat123 <zettat123@noreply.gitea.io>
Reviewed-by: Jason Song <i@wolfogre.com>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-committed-by: Lunny Xiao <xiaolunwen@gmail.com>
This commit is contained in:
Lunny Xiao 2023-04-20 09:43:04 +08:00 committed by Jason Song
parent 7c4f6ad16a
commit 878dcfaeb8
1 changed files with 3 additions and 1 deletions

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.
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