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:'