We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e3ef26 commit 214c4d8Copy full SHA for 214c4d8
release.sh
@@ -0,0 +1,20 @@
1
+#!/bin/bash
2
+
3
+set -eo pipefail
4
+set -x
5
6
+[ -z "$1" ] && { echo >&2 version required; exit 1; }
7
8
+sed -i 's!"version": ".*"!"version": "'"$1"'"!' composer.json
9
+sed -ri "s!Version:( *).*!Version:\\1$1!" woocommerce-gateway-lightning.php
10
+sed -ri s!download/v[^/]+/woocommerce-gateway-lightning.zip!download/v$1/woocommerce-gateway-lightning.zip! README.md
11
12
+./build.sh
13
14
+read -p "Release v$1 ready, press Enter to publish"
15
16
+git add README.md composer.json woocommerce-gateway-lightning.php
17
+git commit -m v$1 && git tag v$1
18
+git push && git push --tags
19
20
+echo Attach zip file: https://github.com/ElementsProject/woocommerce-gateway-lightning/releases/edit/v$1
0 commit comments