Skip to content

Commit eaf3732

Browse files
committed
Fix workflows
1 parent 74238ca commit eaf3732

File tree

5 files changed

+22
-16
lines changed

5 files changed

+22
-16
lines changed

.github/workflows/intellij-publish.yml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99

1010
runs-on: ubuntu-latest
1111
permissions:
12-
contents: read
12+
contents: write
1313
packages: write
1414

1515
steps:
@@ -37,20 +37,21 @@ jobs:
3737
- name: Build with Gradle
3838
run: gradle clean buildPlugin
3939

40-
# - name: Publish Plugin to Jetbrains
41-
# if: ${{ steps.current_release.outputs.prerelease == 'false' && steps.current_release.outputs.draft == 'false' }}
42-
# run: gradle publishPlugin
40+
- name: Publish Plugin to Jetbrains
41+
if: ${{ steps.current_release.outputs.draft == 'false' }}
42+
run: gradle publishPlugin
4343

44-
# - name: Zip plugin
45-
# uses: actions/upload-artifact@v2
46-
# with:
47-
# name: dart-scripts-${{ steps.current_release.outputs.tag_name }}
48-
# path: /build/libs/**
44+
- name: Get Plugin File
45+
id: get_file
46+
run: echo ::set-output name=plugin_file::$(find dart-scripts-*.zip)
47+
working-directory: ./build/distributions
4948

5049
- name: Upload Release Asset
5150
uses: actions/upload-release-asset@v1
5251
env:
5352
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5453
with:
5554
upload_url: ${{ steps.current_release.outputs.upload_url }}
56-
asset_path: /build/libs/**
55+
asset_name: ${{ steps.get_file.outputs.plugin_file }}
56+
asset_path: ./build/distributions/${{ steps.get_file.outputs.plugin_file }}
57+
asset_content_type: application/zip

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Dart Scripts Runner
22

3+
![Downloads](https://img.shields.io/jetbrains/plugin/d/18725-dart-scripts-runner)
4+
![Version](https://img.shields.io/jetbrains/plugin/v/18725-dart-scripts-runner)
5+
36
IntelliJ plugin to run scripts on pubspec.yaml for Dart projects
47

58
## Using

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ plugins {
44
}
55

66
group 'com.joutvhu.jetbrains'
7-
version '1.212.0-beta.0'
7+
version '1.211.0-beta.0'
88

99
sourceCompatibility = 11
1010

@@ -23,7 +23,7 @@ dependencies {
2323
}
2424

2525
intellij {
26-
version = '2021.2'
26+
version = '2021.1'
2727
plugins = [
2828
'org.jetbrains.plugins.terminal',
2929
'org.jetbrains.plugins.yaml'

src/main/java/com/joutvhu/intellij/dartscripts/util/DartIcons.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,13 @@
99

1010
@UtilityClass
1111
public class DartIcons implements Serializable {
12+
private static final long serialVersionUID = -7782889778971848655L;
13+
1214
@NotNull
13-
public final Icon ScriptIcon = load("icons/dartScript.svg", 9113565375246300682L, 0);
15+
public final Icon ScriptIcon = load("icons/dartScript.svg");
1416

1517
@NotNull
16-
private Icon load(@NotNull String path, long cacheKey, int flags) {
17-
return IconManager.getInstance().loadRasterizedIcon(path, DartIcons.class.getClassLoader(), cacheKey, flags);
18+
private Icon load(@NotNull String path) {
19+
return IconManager.getInstance().getIcon(path, DartIcons.class);
1820
}
1921
}

src/main/resources/META-INF/plugin.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<idea-plugin>
2-
<id>com.joutvhu.jetbrains.dart-scripts</id>
2+
<id>com.joutvhu.intellij.dart-scripts</id>
33
<name>Dart Scripts Runner</name>
44
<category>Other Tools</category>
55
<vendor email="joutvhu@gmail.com" url="https://github.com/joutvhu">Giao Ho</vendor>

0 commit comments

Comments
 (0)