File tree Expand file tree Collapse file tree 3 files changed +34
-0
lines changed Expand file tree Collapse file tree 3 files changed +34
-0
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 @@ -45,4 +45,8 @@ sourceSets {
45
45
46
46
publishPlugin {
47
47
token = System . getenv(" MAGENTO_PHPSTORM_intellijPublishToken" )
48
+ isAlpha = System . getenv(" MAGENTO_PHPSTORM_isAlpha" )
49
+ if (isAlpha. equals(true )) {
50
+ channels ' alpha'
51
+ }
48
52
}
You can’t perform that action at this time.
0 commit comments