mmarkdown / mmark

Mmark: a powerful markdown processor in Go geared towards the IETF
https://mmark.miek.nl
Other
480 stars 45 forks source link

ci: set up GoReleaser #208

Closed suzuki-shunsuke closed 11 months ago

suzuki-shunsuke commented 11 months ago

Close https://github.com/mmarkdown/mmark/issues/207

Build and release prebuilt binaries automatically with GoReleaser by CI.

I ran the workflow in my fork repository for testing, and confirmed it works well.

https://github.com/suzuki-shunsuke/mmark/releases/tag/v0.1.0-3 https://github.com/suzuki-shunsuke/mmark/actions/runs/6677329544/job/18147246647

mmark_0.1.0-3_checksums.txt
mmark_0.1.0-3_darwin_amd64.tgz
mmark_0.1.0-3_darwin_arm64.tgz
mmark_0.1.0-3_linux_amd64.tgz
mmark_0.1.0-3_linux_arm.tgz
mmark_0.1.0-3_linux_arm64.tgz
mmark_0.1.0-3_windows_amd64.tgz
$ tar ztvf mmark_0.1.0-3_darwin_amd64.tgz 
-rw-r--r--  0 runner docker   1362 10 28 22:56 LICENSE
-rw-r--r--  0 runner docker   4595 10 28 22:56 README.md
-rwxr-xr-x  0 runner docker 2978160 10 28 22:57 mmark

Asset names, supported platforms, and the structure of archives keep the compatibility with those of previous versions.

https://github.com/mmarkdown/mmark/releases/tag/v2.2.31

mmark_2.2.31_darwin_amd64.tgz
mmark_2.2.31_darwin_arm64.tgz
mmark_2.2.31_linux_amd64.tgz
mmark_2.2.31_linux_arm.tgz
mmark_2.2.31_linux_arm64.tgz
mmark_2.2.31_windows_amd64.tgz
$ tar ztvf mmark_2.2.31_darwin_amd64.tgz 
-rwxrwxr-x  0 miek   miek  4006960  2  8  2023 mmark
suzuki-shunsuke commented 11 months ago

The workflow is based on https://goreleaser.com/ci/actions .

miekg commented 11 months ago

thank you, works beautifully, just tagged a 2.2.40 release