diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..6cd583f --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1 @@ +* @EnchanterIO @MichaelMure @johanherman diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..e1c0ef6 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,29 @@ +name: Release `ipfs-upload-client` binaries + +on: + release: + types: [created] + +jobs: + releases-matrix: + name: Release Go Binary + runs-on: ubuntu-latest + strategy: + matrix: + # build and publish in parallel: linux/386, linux/amd64, windows/386, windows/amd64, darwin/amd64 + goos: [linux, windows, darwin] + goarch: ["386", amd64] + exclude: + - goarch: "386" + goos: darwin + steps: + - uses: actions/checkout@v2 + - uses: wangyoucao577/go-release-action@v1.15 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + goos: ${{ matrix.goos }} + goarch: ${{ matrix.goarch }} + project_path: "." + binary_name: "ipfs-upload-client" + ldflags: "-s -w" + extra_files: Readme.md diff --git a/main.go b/main.go index d39bd08..0f8a431 100644 --- a/main.go +++ b/main.go @@ -77,7 +77,7 @@ func main() { } }() - resolved, err := client.Unixfs().Add(ctx, file, caopts.Unixfs.Pin(*pin)) + resolved, err := client.Unixfs().Add(ctx, file, caopts.Unixfs.Pin(*pin), caopts.Unixfs.Progress(true)) if err != nil { _, _ = fmt.Fprintln(os.Stderr, err) os.Exit(-1)