From 9d04ca55f200e5cb23c62ddc9be846f639ffea15 Mon Sep 17 00:00:00 2001 From: michimani Date: Mon, 5 Dec 2022 21:30:06 +0900 Subject: [PATCH] feature: build extension by make command #3 --- .github/workflows/release.yml | 3 +-- .gitignore | 1 + Makefile | 6 ++++++ 3 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 .gitignore create mode 100644 Makefile diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 62abfac..ec47c34 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -74,8 +74,7 @@ jobs: - name: Build extension and zip run: | - GOOS=linux GOARCH=amd64 go build -o bin/extensions/invocation-history-extension main.go - chmod +x bin/extensions/invocation-history-extension + make build cd bin && zip -r extension.zip extensions/ - name: Upload release asset diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ba077a4 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +bin diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..44f1095 --- /dev/null +++ b/Makefile @@ -0,0 +1,6 @@ +.PHONY: build + +build: + GOOS=linux GOARCH=amd64 go build -o bin/extensions/invocation-history-extension main.go + chmod +x bin/extensions/invocation-history-extension + cd bin && zip -r extension.zip extensions/