Skip to content

Commit

Permalink
Add Go example
Browse files Browse the repository at this point in the history
  • Loading branch information
aalmiray committed Dec 4, 2024
1 parent 6eb6804 commit bdbc705
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/modules/ROOT/pages/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ JReleaser is a release automation tool. Its goal is to simplify creating release
to multiple package managers while providing customizable options. However, you may also use it with projects that do
not require publishing binary assets. The tool can be used to create Git releases (tag, changelog, assets), announce releases,
assemble additional binaries and files to be published via package managers. JReleaser supports any kind of project regardless
of its source language (Java, Node, Rust, Perl, Python, C/C++, C#, Elixir, Haskell, etc), although it provides additional
of its source language (Java, Go, Node, Rust, Perl, Python, C/C++, C#, Elixir, Haskell, etc), although it provides additional
benefits to Java based projects.

Examples of Java projects:
Expand All @@ -22,6 +22,7 @@ Examples of non-Java projects:
* xref:examples:miscellaneous/crystal.adoc[]
* xref:examples:miscellaneous/csharp-cross-platform.adoc[]
* xref:examples:miscellaneous/elixir.adoc[]
* xref:examples:miscellaneous/go.adoc[]
* xref:examples:miscellaneous/haskell.adoc[]
* xref:examples:miscellaneous/perl.adoc[]
* xref:examples:miscellaneous/rust-cross-platform.adoc[]
Expand Down
1 change: 1 addition & 0 deletions docs/modules/examples/nav.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
*** xref:miscellaneous/crystal.adoc[]
*** xref:miscellaneous/csharp-cross-platform.adoc[]
*** xref:miscellaneous/elixir.adoc[]
*** xref:miscellaneous/go.adoc[]
*** xref:miscellaneous/haskell.adoc[]
*** xref:miscellaneous/perl.adoc[]
*** xref:miscellaneous/rust-cross-platform.adoc[]
Expand Down
16 changes: 16 additions & 0 deletions docs/modules/examples/pages/miscellaneous/go.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
= Helloworld in Go

The link:https://github.com/jreleaser/helloworld-go[] repository shows how to configure link:https://github.com/features/actions[GitHub Actions] and link:https://jreleaser.org/[JReleaser] to:

* compile a helloworld app for the following targets:
** `linux-amd64`
** `linux-arm64`
** `darwin-arm64`
** `darwin-amd64`
** `windows-amd64`
** `windows-arm64`
* assemble zip distributions with JReleaser
* create rolling early-access releases with JReleaser on every push to `main` branch

IMPORTANT: JReleaser requires 2 additional inputs that may be set as environment variables, `JRELEASER_PROJECT_VERSION` and `JRELEASER_GITHUB_TOKEN`.
More information about environment variable configuration may be found in the link:https://jreleaser.org/guide/latest/reference/environment.html[guide].
1 change: 1 addition & 0 deletions docs/modules/examples/pages/miscellaneous/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
* xref:miscellaneous/crystal.adoc[]
* xref:miscellaneous/csharp-cross-platform.adoc[]
* xref:miscellaneous/elixir.adoc[]
* xref:miscellaneous/go.adoc[]
* xref:miscellaneous/haskell.adoc[]
* xref:miscellaneous/perl.adoc[]
* xref:miscellaneous/rust-cross-platform.adoc[]
Expand Down

0 comments on commit bdbc705

Please sign in to comment.