From 81690d908172db5e8cdff072a9c46323784bfefb Mon Sep 17 00:00:00 2001 From: Sinuhe Tellez Date: Thu, 6 May 2021 00:20:31 -0400 Subject: [PATCH] increase the number of os and arch to build in the release --- .github/workflows/release.yml | 5 +-- .gitignore | 2 +- .goreleaser.yml | 62 +++++++++++++++++++++++++++++++++++ 3 files changed, 64 insertions(+), 5 deletions(-) create mode 100644 .goreleaser.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7bce169..7add829 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -22,9 +22,6 @@ jobs: uses: actions/setup-go@v2 with: go-version: 1.16 - - - name: Set env - run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV - name: Run GoReleaser uses: goreleaser/goreleaser-action@v2 @@ -32,5 +29,5 @@ jobs: version: latest args: release --rm-dist env: - GITHUB_TOKEN: ${{ secrets.GORELEASER_GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.gitignore b/.gitignore index 9343c57..7845410 100644 --- a/.gitignore +++ b/.gitignore @@ -26,4 +26,4 @@ _testmain.go *.prof dir2opds -!/dir2opds \ No newline at end of file +!/dir2opdsdist/ diff --git a/.goreleaser.yml b/.goreleaser.yml new file mode 100644 index 0000000..dc11cc3 --- /dev/null +++ b/.goreleaser.yml @@ -0,0 +1,62 @@ +project_name: dir2opds +env: + - GO111MODULE=on + - GOPROXY=https://proxy.golang.org +before: + hooks: + - go mod download +builds: + - env: + - CGO_ENABLED=0 + flags: + - -buildmode + - exe + goos: + - darwin + - linux + - windows + - freebsd + - netbsd + - openbsd + - dragonfly + goarch: + - amd64 + - 386 + - arm + - arm64 + goarm: + - 7 + ignore: + - goos: darwin + goarch: 386 + +archives: + - + id: "dir2opds" + builds: ['dir2opds'] + format: tar.gz + format_overrides: + - goos: windows + format: zip + replacements: + amd64: 64bit + 386: 32bit + arm: ARM + arm64: ARM64 + darwin: macOS + linux: Linux + windows: Windows + openbsd: OpenBSD + netbsd: NetBSD + freebsd: FreeBSD + dragonfly: DragonFlyBSD +checksum: + name_template: 'checksums.txt' +snapshot: + name_template: "{{ .Tag }}-next" +changelog: + sort: asc + filters: + exclude: + - '^docs:' + - '^test:'