github.com/goreleaser/goreleaser@v1.25.1/www/docs/cookbooks/publish-to-nexus.md (about)

     1  # Publish to Nexus
     2  
     3  Example of a [publishers](/customization/publishers/) section pushing files to a Nexus instance:
     4  
     5  ```yaml
     6  publishers:
     7  - name: nexus
     8    cmd: >-
     9      curl -k -u "{{ .Env.NEXUS_USERNAME }}:{{ .Env.NEXUS_PASSWORD }}"
    10        -X POST
    11        -H "Accept: application/json"
    12        -H "Content-Type: multipart/form-data"
    13        "https://nexuspro.somehost.com/service/rest/v1/components?repository=go-raw-autopub"
    14        -F "raw.directory={{ tolower .Env.PROJECT_KEY }}/{{ tolower .ProjectName }}/{{ .Version }}"
    15        -F "raw.asset1=@{{ .ArtifactName }};type=application/gzip"
    16        -F "raw.asset1.filename={{ .ArtifactName }}"
    17    dir: "{{ dir .ArtifactPath }}"
    18  ```