github.com/anakojm/hugo-katex@v0.0.0-20231023141351-42d6f5de9c0b/hugoreleaser.toml (about)

     1  project = "hugo"
     2  
     3  # In Hugo v0.103.0 we removed the archive name replacements (e.g. amd64 => 64bit).
     4  # Using standard GOOS/GOARCH values makes it easier for scripts out there,
     5  # but to prevent breakage in Netlify etc. that has adopted to the old names,
     6  # we create aliases for the most common variants. 
     7  # According to download numbers from v0.101.0, these are by a good margin the two most popular:
     8  # hugo_extended_0.101.0_Linux-64bit.tar.gz  Downloaded 129,016 times
     9  # hugo_0.101.0_Linux-64bit.tar.gz  Downloaded 87,846 times
    10  # This replacement will create 2 extra alias archives.
    11  archive_alias_replacements = { "linux-amd64.tar.gz" = "Linux-64bit.tar.gz" }
    12  
    13  [go_settings]
    14      go_proxy = "https://proxy.golang.org"
    15      go_exe   = "go"
    16  
    17  [build_settings]
    18      binary  = "hugo"
    19      flags   = ["-buildmode", "exe"]
    20      env     = ["CGO_ENABLED=0"]
    21      ldflags = "-s -w -X github.com/gohugoio/hugo/common/hugo.vendorInfo=gohugoio"
    22  
    23  [archive_settings]
    24      name_template = "{{ .Project }}_{{ .Tag | trimPrefix `v` }}_{{ .Goos }}-{{ .Goarch }}"
    25      extra_files = [
    26          { source_path = "README.md", target_path = "README.md" },
    27          { source_path = "LICENSE", target_path = "LICENSE" },
    28      ]
    29      [archive_settings.type]
    30          format    = "tar.gz"
    31          extension = ".tar.gz"
    32  
    33  [release_settings]
    34      name             = "${HUGORELEASER_TAG}"
    35      type             = "github"
    36      repository       = "hugo"
    37      repository_owner = "gohugoio"
    38      draft            = true
    39      prerelease       = false
    40  
    41      [release_settings.release_notes_settings]
    42          # Use Hugoreleaser's autogenerated release notes.
    43          generate = true
    44  
    45          # Collapse releases with < 10 changes below one title.
    46          short_threshold = 10
    47          short_title     = "What's Changed"
    48  
    49          groups = [
    50              # Group the changes in the release notes by title.
    51              # You need at least one.
    52              # The groups will be tested in order until a match is found.
    53              # The titles will so be listed in the given order in the release note.
    54              # Any match with ignore=true title will be dropped.
    55              { regexp = "Merge commit|Squashed|releaser:", ignore = true },
    56              { title = "Note", regexp = "(note|deprecated)", ordinal = 10 },
    57              { title = "Bug fixes", regexp = "fix", ordinal = 15 },
    58              { title = "Dependency Updates", regexp = "deps", ordinal = 30 },
    59              { title = "Build Setup", regexp = "(snap|release|update to)", ordinal = 40 },
    60              { title = "Documentation", regexp = "(doc|readme)", ordinal = 40 },
    61              { title = "Improvements", regexp = ".*", ordinal = 20 },
    62          ]
    63  
    64  [[builds]]
    65      path = "container1/unix/regular"
    66  
    67      [[builds.os]]
    68          goos = "darwin"
    69          [[builds.os.archs]]
    70              goarch = "universal"
    71      [[builds.os]]
    72          goos = "linux"
    73          [[builds.os.archs]]
    74              goarch = "amd64"
    75          [[builds.os.archs]]
    76              goarch = "arm64"
    77          [[builds.os.archs]]
    78              goarch = "arm"
    79              [builds.os.archs.build_settings]
    80                  env = ["CGO_ENABLED=0", "GOARM=7"]
    81  
    82      # Unix BSD variants
    83      [[builds.os]]
    84          goos = "dragonfly"
    85          [[builds.os.archs]]
    86              goarch = "amd64"
    87      [[builds.os]]
    88          goos = "freebsd"
    89          [[builds.os.archs]]
    90              goarch = "amd64"
    91      [[builds.os]]
    92          goos = "netbsd"
    93          [[builds.os.archs]]
    94              goarch = "amd64"
    95      [[builds.os]]
    96          goos = "openbsd"
    97          [[builds.os.archs]]
    98              goarch = "amd64"
    99  
   100  [[builds]]
   101      path = "container1/unix/extended"
   102  
   103      [builds.build_settings]
   104          flags = ["-buildmode", "exe", "-tags", "extended"]
   105          env   = ["CGO_ENABLED=1"]
   106  
   107      [[builds.os]]
   108          goos = "darwin"
   109          [builds.os.build_settings]
   110              env = ["CGO_ENABLED=1", "CC=o64-clang", "CXX=o64-clang++"]
   111          [[builds.os.archs]]
   112              goarch = "universal"
   113      [[builds.os]]
   114          goos = "linux"
   115          [[builds.os.archs]]
   116              goarch = "amd64"
   117  
   118  [[builds]]
   119      path = "container2/linux/extended"
   120  
   121      [builds.build_settings]
   122          flags = ["-buildmode", "exe", "-tags", "extended"]
   123  
   124      [[builds.os]]
   125          goos = "linux"
   126          [builds.os.build_settings]
   127              env = [
   128                  "CGO_ENABLED=1",
   129                  "CC=aarch64-linux-gnu-gcc",
   130                  "CXX=aarch64-linux-gnu-g++",
   131              ]
   132          [[builds.os.archs]]
   133              goarch = "arm64"
   134  
   135  [[builds]]
   136      path = "container1/windows/regular"
   137  
   138      [[builds.os]]
   139          goos = "windows"
   140          [builds.os.build_settings]
   141              binary = "hugo.exe"
   142          [[builds.os.archs]]
   143              goarch = "amd64"
   144          [[builds.os.archs]]
   145              goarch = "arm64"
   146  
   147  [[builds]]
   148      path = "container1/windows/extended"
   149  
   150      [builds.build_settings]
   151          flags = ["-buildmode", "exe", "-tags", "extended"]
   152          env = [
   153              "CGO_ENABLED=1",
   154              "CC=x86_64-w64-mingw32-gcc",
   155              "CXX=x86_64-w64-mingw32-g++",
   156          ]
   157          ldflags = "-s -w -X github.com/gohugoio/hugo/common/hugo.vendorInfo=gohugoio -extldflags '-static'"
   158  
   159      [[builds.os]]
   160          goos = "windows"
   161          [builds.os.build_settings]
   162              binary = "hugo.exe"
   163          [[builds.os.archs]]
   164              goarch = "amd64"
   165  
   166  [[archives]]
   167      paths = ["builds/container1/unix/regular/**"]
   168  [[archives]]
   169      paths = ["builds/container1/unix/extended/**"]
   170      [archives.archive_settings]
   171          name_template = "{{ .Project }}_extended_{{ .Tag | trimPrefix `v` }}_{{ .Goos }}-{{ .Goarch }}"
   172  [[archives]]
   173      # Only extended builds in container2.
   174      paths = ["builds/container2/**"]
   175      [archives.archive_settings]
   176          name_template = "{{ .Project }}_extended_{{ .Tag | trimPrefix `v` }}_{{ .Goos }}-{{ .Goarch }}"
   177  [[archives]]
   178      paths = ["builds/**/windows/regular/**"]
   179      [archives.archive_settings.type]
   180          format    = "zip"
   181          extension = ".zip"
   182  [[archives]]
   183      paths = ["builds/**/windows/extended/**"]
   184      [archives.archive_settings]
   185          name_template = "{{ .Project }}_extended_{{ .Tag | trimPrefix `v` }}_{{ .Goos }}-{{ .Goarch }}"
   186          [archives.archive_settings.type]
   187              format    = "zip"
   188              extension = ".zip"
   189  [[archives]]
   190      paths = ["builds/**/regular/linux/{arm64,amd64}"]
   191      [archives.archive_settings]
   192          binary_dir  = "/usr/local/bin"
   193          extra_files = []
   194          [archives.archive_settings.type]
   195              format    = "_plugin"
   196              extension = ".deb"
   197          [archives.archive_settings.plugin]
   198              id      = "deb"
   199              type    = "gorun"
   200              command = "github.com/gohugoio/hugoreleaser-archive-plugins/deb@v0.6.1"
   201          [archives.archive_settings.custom_settings]
   202              vendor      = "gohugo.io"
   203              homepage    = "https://github.com/gohugoio/hugoreleaser"
   204              maintainer  = "Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>"
   205              description = "Build, archive and release Go programs."
   206              license     = "Apache-2.0"
   207  [[archives]]
   208      paths = ["builds/**/extended/linux/{arm64,amd64}"]
   209      [archives.archive_settings]
   210          binary_dir    = "/usr/local/bin"
   211          extra_files   = []
   212          name_template = "{{ .Project }}_extended_{{ .Tag | trimPrefix `v` }}_{{ .Goos }}-{{ .Goarch }}"
   213          [archives.archive_settings.type]
   214              format    = "_plugin"
   215              extension = ".deb"
   216          [archives.archive_settings.plugin]
   217              id      = "deb"
   218              type    = "gorun"
   219              command = "github.com/gohugoio/hugoreleaser-archive-plugins/deb@latest"
   220          [archives.archive_settings.custom_settings]
   221              vendor      = "gohugo.io"
   222              homepage    = "https://github.com/gohugoio/hugoreleaser"
   223              maintainer  = "Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>"
   224              description = "Build, archive and release Go programs."
   225              license     = "Apache-2.0"
   226  
   227  [[releases]]
   228      paths = ["archives/**"]
   229      path  = "r1"
   230  
   231      # The above should allow the following build commands:
   232      # hugoreleaser build -paths "builds/container1/**"
   233      # hugoreleaser build -paths "builds/container2/**"
   234      # hugoreleaser archive 
   235      # hugoreleaser release