Skip to content

Commit

Permalink
hotfix: change archives section of .goreleaser.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
kozmod committed Jan 21, 2023
1 parent b0b7e54 commit baa31e8
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 34 deletions.
14 changes: 2 additions & 12 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,12 @@ builds:
- -s -w -X github.com/kozmod/progen/internal.Version=v{{.Version}}
env:
- CGO_ENABLED=0
goos:
- darwin
- linux
- windows
goarch:
- amd64
- arm64
archives:
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
files:
- README.md
- files:
- Readme.md
- LICENSE
checksum:
name_template: "checksum.txt"
Expand Down
44 changes: 22 additions & 22 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,31 +40,31 @@ ___

### Actions

| Key | Type | Optional | Description |
|:-----------------------------------|:-----------------:|:--------------:|:---------------------------------------------------------------:|
| | | | |
| http | || http client configuration |
| http.debug | bool || http client `DEBUG` mode |
| http.base_url | string || http client base `URL` |
| http.headers | map[string]string || http client base request `Headers` |
| | | | |
| dirs`<unique_suffix>` <sup>1</sup> | []string || list of directories to create |
| | | | |
| files`<unique_suffix>` | || list file's `path` and `data` |
| files.path | string || save file `path` |
| files.tmpl_skip | bool || flag to skip processing file data as template(except of `data`) |
| files.local | string | <sup>2</sup> | local file path to copy |
| files.data | string | | save file `data` |
| | | | |
| files.get | | | struct describe `GET` request for getting file's data |
| files.get.url | string || request `URL` |
| files.get.headers | map[string]string || request headers |
| | | | |
| cmd`<unique_suffix>` | []slice || list of command to execute |
| Key | Type | Optional | Description |
|:----------------------------------|:-----------------:|:--------------:|:---------------------------------------------------------------:|
| | | | |
| http | || http client configuration |
| http.debug | bool || http client `DEBUG` mode |
| http.base_url | string || http client base `URL` |
| http.headers | map[string]string || http client base request `Headers` |
| | | | |
| dirs`<unique_suffix>`<sup>1</sup> | []string || list of directories to create |
| | | | |
| files`<unique_suffix>` | || list file's `path` and `data` |
| files.path | string || save file `path` |
| files.tmpl_skip | bool || flag to skip processing file data as template(except of `data`) |
| files.local | string | 🔹<sup>2</sup> | local file path to copy |
| files.data | string | 🔹 | save file `data` |
| | | | |
| files.get | | 🔹 | struct describe `GET` request for getting file's data |
| files.get.url | string || request `URL` |
| files.get.headers | map[string]string || request headers |
| | | | |
| cmd`<unique_suffix>` | []slice || list of command to execute |

1. all action execute on declaration order. Base actions (`dir`, `files`,`cmd`) could be configured
with `<unique_suffix>` to separate action execution.
2. `` only one must be specified in parent section
2. 🔹 only one must be specified in parent section

___

Expand Down

0 comments on commit baa31e8

Please sign in to comment.