Skip to content

Commit 3d5409b

Browse files
Uday HiwaraleUday Hiwarale
Uday Hiwarale
authored and
Uday Hiwarale
committed
README.md update
1 parent a5d76d8 commit 3d5409b

File tree

2 files changed

+40
-7
lines changed

2 files changed

+40
-7
lines changed

README.md

+40-7
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
This actions generates cross-platform executable files from a Go module.
33

44
![release](/assets/release.png)
5+
> Automatic release management of the [**tree**](https://github.com/thatisuday/tree/releases) CLI tool using **go-build-action** action.
56
6-
# Workflow setup
7+
8+
## Workflow setup
79

810
```yaml
911
# workflow name
@@ -33,17 +35,48 @@ jobs:
3335
dest: 'dist'
3436
```
3537
36-
### option: **platforms**
38+
#### ☉ option: **platforms**
3739
The `platforms` option specifies comma-separated platform names to create binary-executable files for. To see the list of supported platforms, use `go tool dist list` command.
3840

39-
### option: **package**
41+
#### ☉ option: **package**
4042
If the module (_repository_) itself is a Go package, then `package` option value should be an empty string (''). If the repository contains a package directory, then `package` value should be the directory name.
4143

42-
### option: **compress**
44+
#### ☉ option: **compress**
4345
The `compress` option if set to `'true'` will generate **compressed-tar** archive files for the each platform-build file. The resulting archive file also contains `README.md` and `LICENSE` file if they exist inside the root of the repository. In this mode, the binary executable file name is taken from the `name` option value.
4446

45-
### option: **name**
47+
#### ☉ option: **name**
4648
The `name` option sets a prefix for the build filenames. In compression mode, this prefix is applied to archive files and binary executable filename is set to this value.
4749

48-
### option: **dest**
49-
The `dest` option sets the output directory for the build files. This should be a relative directory without leading `./`.
50+
#### ☉ option: **dest**
51+
The `dest` option sets the output directory for the build files. This should be a relative directory without leading `./`.
52+
53+
54+
## Build Artifacts
55+
This action produces following build-artifacts.
56+
57+
#### In non-compression mode
58+
```
59+
./<dest>/
60+
├── <name>-darwin-amd64
61+
├── <name>-linux-amd64
62+
├── ...
63+
└── <name>-windows-amd64.exe
64+
```
65+
66+
#### In compression mode
67+
```
68+
./<dest>/
69+
├── <name>-darwin-amd64.tar.gz
70+
| ├── <name>
71+
| ├── LICENSE
72+
| └── README.md
73+
├── <name>-linux-amd64.tar.gz
74+
| ├── <name>
75+
| ├── LICENSE
76+
| └── README.md
77+
├── ...
78+
└── <name>-windows-amd64.tar.gz
79+
├── <name>.exe
80+
├── LICENSE
81+
└── README.md
82+
```

assets/release.png

7.08 KB
Loading

0 commit comments

Comments
 (0)