From 0790d338a2b767c40afc79d7dfe67d9a6a10298d Mon Sep 17 00:00:00 2001 From: tzssangglass Date: Fri, 19 Aug 2022 14:09:44 +0800 Subject: [PATCH] docs: update MAINTAIN.md (#187) --- MAINTAIN.md | 19 +++++++++++++------ Makefile | 10 +++++----- 2 files changed, 18 insertions(+), 11 deletions(-) diff --git a/MAINTAIN.md b/MAINTAIN.md index 5cf7f66..63f6ca9 100644 --- a/MAINTAIN.md +++ b/MAINTAIN.md @@ -26,9 +26,16 @@ Project Maintenance Apache projects release all software packages through the ASF distribution system. 1. Set up your development environment. For more details, see the [Publishing Maven Releases to Maven Central Repository](https://infra.apache.org/publishing-maven-artifacts.html). - -2. Deploy the snapshot artifacts to Apache Nexus - -```shell -make deploy -``` +2. Create a release PR, the release PR (e.g.: https://github.com/apache/apisix-java-plugin-runner/pull/183) should do the following: + - contains the changelog + - contains version change(remove `SNAPSHOT` suffix) +3. After the release PR merged, create a branch named `release/` form `main` branch +4. Execute `make release-src` to build vote artifact, package the vote artifact to Apache's dev-apisix repo +5. When the vote is passed, Send the [vote email](https://lists.apache.org/thread/721kfy9yqp4cm5cokg4yydczxgr08nbq) to dev@apisix.apache.org +6. When the vote is passed, send the [vote result email](https://lists.apache.org/thread/ky55hf5swklb880x3tf3rdwfj5wyt1hs) to dev@apisix.apache.org +7. Move the vote artifact to Apache's apisix repo +8. Register the release info in https://reporter.apache.org/addrelease.html?apisix +9. Checkout the release branch, execute `make deploy` to deploy the release artifact to Apache's apisix repo +10. Create a [GitHub release](https://github.com/apache/apisix-java-plugin-runner/releases/tag/0.3.0) from the release branch +11. Update [APISIX's website](https://github.com/apache/apisix-website/pull/1295) +12. Send the [ANNOUNCE email](https://lists.apache.org/thread/4s4msqwl1tq13p9dnv3hx7skbgpkozw1) to dev@apisix.apache.org & announce@apache.org diff --git a/Makefile b/Makefile index d5766b6..12198f8 100644 --- a/Makefile +++ b/Makefile @@ -22,13 +22,13 @@ RELEASE_SRC = apisix-java-plugin-runner-${VERSION}-src .PHONY: release-src release-src: compress-tar - gpg --batch --yes --armor --detach-sig ./$(RELEASE_SRC).tgz - shasum -a 512 ./$(RELEASE_SRC).tgz > ./$(RELEASE_SRC).tgz.sha512 + cd dist && gpg --batch --yes --armor --detach-sig ./$(RELEASE_SRC).tgz + cd dist && 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 + mv ./dist/$(RELEASE_SRC).tgz ./release/$(RELEASE_SRC).tgz + mv ./dist/$(RELEASE_SRC).tgz.asc ./release/$(RELEASE_SRC).tgz.asc + mv ./dist/$(RELEASE_SRC).tgz.sha512 ./release/$(RELEASE_SRC).tgz.sha512 .PHONY: compress-tar compress-tar: