This is an automated email from the ASF dual-hosted git repository.
shuaijinchao pushed a commit to branch master
in repository
https://gitbox.apache.org/repos/asf/apisix-python-plugin-runner.git
The following commit(s) were added to refs/heads/master by this push:
new d69efa1 feat: add release function to Makefile (#28)
d69efa1 is described below
commit d69efa1a8cb4e6e111b611cb564224339bae039d
Author: 帅进超 <[email protected]>
AuthorDate: Sat Aug 28 00:22:33 2021 +0800
feat: add release function to Makefile (#28)
* feat: add release function to Makefile
* style: update release package name
---
Makefile | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/Makefile b/Makefile
index 0e8cf49..d2e02c0 100644
--- a/Makefile
+++ b/Makefile
@@ -14,6 +14,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.
+VERSION ?= latest
+RELEASE_SRC = apisix-python-plugin-runner-${VERSION}-src
+
.PHONY: setup
setup:
python3 -m pip install --upgrade pip
@@ -49,3 +52,14 @@ clean:
.PHONY: dev
dev:
export PYTHONPATH=$(PWD) && python3 apisix/main.py start
+
+
+.PHONY: release
+release:
+ tar -zcvf $(RELEASE_SRC).tgz apisix docs tests *.md LICENSE Makefile
NOTICE pytest.ini requirements.txt setup.py
+ gpg --batch --yes --armor --detach-sig $(RELEASE_SRC).tgz
+ shasum -a 512 $(RELEASE_SRC).tgz > $(RELEASE_SRC).tgz.sha512
+ mkdir -p release
+ mv $(RELEASE_SRC).tgz release/$(RELEASE_SRC).tgz
+ mv $(RELEASE_SRC).tgz.asc release/$(RELEASE_SRC).tgz.asc
+ mv $(RELEASE_SRC).tgz.sha512 release/$(RELEASE_SRC).tgz.sha512