Skip to content

Commit

Permalink
refactor release script to make
Browse files Browse the repository at this point in the history
  • Loading branch information
ezekg committed Oct 4, 2024
1 parent 6a11455 commit 523f9ea
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 114 deletions.
52 changes: 52 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,58 @@ build-all: clean build-linux-386 build-linux-amd64 build-linux-arm build-linux-a
build-darwin-arm64 build-windows-386 build-windows-amd64 build-windows-arm build-windows-arm64 \
build-install build-version

release-new:
keygen new --name "Keygen Relay v$(PACKAGE_VERSION)" --channel ${PACKAGE_CHANNEL} --version ${PACKAGE_VERSION}

release-linux-386:
keygen upload build/relay_linux_386 --release ${PACKAGE_VERSION} --platform linux --arch 386

release-linux-amd64:
keygen upload build/relay_linux_amd64 --release ${PACKAGE_VERSION} --platform linux --arch amd64

release-linux-arm:
keygen upload build/relay_linux_arm --release ${PACKAGE_VERSION} --platform linux --arch arm

release-linux-arm64:
keygen upload build/relay_linux_arm64 --release ${PACKAGE_VERSION} --platform linux --arch arm64

release-darwin-amd64:
keygen upload build/relay_darwin_amd64 --release ${PACKAGE_VERSION} --platform darwin --arch amd64

release-darwin-arm64:
keygen upload build/relay_darwin_arm64 --release ${PACKAGE_VERSION} --platform darwin --arch arm64

release-windows-386:
keygen upload build/relay_windows_386.exe --release ${PACKAGE_VERSION} --platform windows --arch 386

release-windows-amd64:
keygen upload build/relay_windows_amd64.exe --release ${PACKAGE_VERSION} --platform windows --arch amd64

release-windows-arm:
keygen upload build/relay_windows_arm.exe --release ${PACKAGE_VERSION} --platform windows --arch arm

release-windows-arm64:
keygen upload build/relay_windows_arm64.exe --release ${PACKAGE_VERSION} --platform windows --arch arm64

release-installer:
keygen upload build/install.sh --release ${PACKAGE_VERSION}

release-version:
keygen upload build/version --release ${PACKAGE_VERSION} --filetype txt

release-publish:
keygen publish --release ${PACKAGE_VERSION}

release-tag:
ifeq ($(PACKAGE_CHANNEL),stable)
keygen untag --release latest
keygen tag latest --release ${PACKAGE_VERSION}
endif

release: release-new release-linux-386 release-linux-amd64 release-linux-arm release-linux-arm64 release-darwin-amd64 \
release-darwin-arm64 release-windows-386 release-windows-amd64 release-windows-arm release-windows-arm64 \
release-installer release-version release-publish release-tag

test:
go test -race ./...

Expand Down
114 changes: 0 additions & 114 deletions scripts/publish.sh

This file was deleted.

0 comments on commit 523f9ea

Please sign in to comment.