File tree Expand file tree Collapse file tree 4 files changed +42
-2
lines changed Expand file tree Collapse file tree 4 files changed +42
-2
lines changed Original file line number Diff line number Diff line change 25
25
run : ./gradlew publishPlugin -i
26
26
env :
27
27
MAGENTO_PHPSTORM_intellijPublishToken : ${{ secrets.JET_BRAINS_TOKEN }}
28
+ MAGENTO_PHPSTORM_isAlpha : false
Original file line number Diff line number Diff line change
1
+ # This workflow will build a package using Gradle and then publish it to JetBrains alpha repository when a PR is merged to the develop branch
2
+
3
+ name : Publish Plugin alpha version
4
+
5
+ on :
6
+ push :
7
+ branches :
8
+ - 1.0.1-develop
9
+
10
+ jobs :
11
+ build :
12
+
13
+ runs-on : ubuntu-latest
14
+
15
+ steps :
16
+ - uses : actions/checkout@v2
17
+ - name : Set up JDK 1.8
18
+ uses : actions/setup-java@v1
19
+ with :
20
+ java-version : 1.8
21
+ - name : Gradle wrapper
22
+ run : gradle wrapper
23
+ - name : Grant execute permission for gradlew
24
+ run : chmod +x gradlew
25
+ - name : Run publish plugin
26
+ run : ./gradlew publishPlugin -i
27
+ env :
28
+ MAGENTO_PHPSTORM_intellijPublishToken : ${{ secrets.JET_BRAINS_TOKEN }}
29
+ MAGENTO_PHPSTORM_isAlpha : true
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ plugins {
8
8
}
9
9
10
10
group ' com.magento.idea'
11
- version ' 1 .0.1 '
11
+ version ' 0 .0.9 '
12
12
13
13
apply plugin : ' org.jetbrains.intellij'
14
14
apply plugin : ' java'
@@ -45,4 +45,14 @@ sourceSets {
45
45
46
46
publishPlugin {
47
47
token = System . getenv(" MAGENTO_PHPSTORM_intellijPublishToken" )
48
+ if (Boolean . valueOf(System . getenv(" MAGENTO_PHPSTORM_isAlpha" ))) {
49
+ channels ' alpha'
50
+ // version = version + "-alpha-" + getDate()
51
+ }
52
+ }
53
+
54
+ static def getDate () {
55
+ def date = new Date ()
56
+ def formattedDate = date. format(' yyyy-MM-dd-HH-mm' )
57
+ return formattedDate
48
58
}
Original file line number Diff line number Diff line change 7
7
<idea-plugin >
8
8
<id >com.magento.idea.magento2plugin</id >
9
9
<name >Magento PhpStorm</name >
10
- <version >1 .0.1 </version >
10
+ <version >0 .0.9 </version >
11
11
<vendor url =" https://github.com/magento/magento2-phpstorm-plugin" >Magento Inc.</vendor >
12
12
13
13
<description ><![CDATA[
You can’t perform that action at this time.
0 commit comments