Skip to content

Commit 4f23977

Browse files
author
Vitaliy Boyko
committed
Added publish plugin configuration
1 parent 71a0b37 commit 4f23977

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

.github/workflows/gradlepublish.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# This workflow will build a package using Gradle and then publish it to JetBrains repository when a release is created
2+
3+
name: Publish Plugin
4+
5+
on:
6+
release:
7+
types: [created]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v2
16+
- name: Set up JDK 1.8
17+
uses: actions/setup-java@v1
18+
with:
19+
java-version: 1.8
20+
- name: Gradle wrapper
21+
run: gradle wrapper
22+
- name: Grant execute permission for gradlew
23+
run: chmod +x gradlew
24+
- name: Run publish plugin
25+
run: ./gradlew publishPlugin -i
26+
env:
27+
MAGENTO_PHPSTORM_intellijPublishToken: ${{ secrets.JET_BRAINS_TOKEN }}

build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,7 @@ sourceSets {
4242
resources.srcDir 'testData'
4343
}
4444
}
45+
46+
publishPlugin {
47+
token = System.getenv("MAGENTO_PHPSTORM_intellijPublishToken")
48+
}

0 commit comments

Comments
 (0)