diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 28a43158..c6226702 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -47,7 +47,7 @@ jobs: name: refact-chat-js-latest path: ./src/main/resources/webview/dist - - uses: convictional/trigger-workflow-and-wait@v1.6.1 + - uses: convictional/trigger-workflow-and-wait@v1.6.5 name: "Build refact-lsp" with: owner: smallcloudai @@ -71,7 +71,7 @@ jobs: # Validate wrapper - name: Gradle Wrapper Validation - uses: gradle/wrapper-validation-action@v3 + uses: gradle/actions/wrapper-validation@v3 # Setup Java 17 environment for the next steps - name: Setup Java @@ -114,7 +114,6 @@ jobs: # Collect Plugin Verifier Result - name: Collect Plugin Verifier Result - if: ${{ always() }} uses: actions/upload-artifact@v4 with: name: pluginVerifier-result @@ -133,7 +132,7 @@ jobs: # Store already-built plugin as an artifact for downloading - name: Upload artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: ${{ steps.artifact.outputs.filename }} path: ./build/distributions/content/*/* diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6dcfa3f5..9fa086da 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -37,6 +37,13 @@ jobs: with: fetch-depth: 0 + # Setup Java 17 environment for the next steps + - name: Setup Java + uses: actions/setup-java@v4 + with: + distribution: zulu + java-version: 17 + - name: Set env CHANNEL shell: bash id: setupvars @@ -68,7 +75,7 @@ jobs: name: refact-chat-js-latest path: ./src/main/resources/webview/dist - - uses: convictional/trigger-workflow-and-wait@v1.6.1 + - uses: convictional/trigger-workflow-and-wait@v1.6.5 name: "Build refact-lsp" with: owner: smallcloudai @@ -84,19 +91,14 @@ jobs: github_token: ${{secrets.GITHUB_TOKEN}} workflow: build.yml repo: smallcloudai/refact-lsp + name_is_regexp: true + name: dist-* branch: ${{ steps.setupvars.outputs.lsp_version }} path: ./src/main/resources/bin # Validate wrapper - name: Gradle Wrapper Validation - uses: gradle/wrapper-validation-action@v3 - - # Setup Java 17 environment for the next steps - - name: Setup Java - uses: actions/setup-java@v4 - with: - distribution: zulu - java-version: 17 + uses: gradle/actions/wrapper-validation@v3 # Set environment variables - name: Export Properties @@ -151,7 +153,7 @@ jobs: # Store already-built plugin as an artifact for downloading - name: Upload artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: ${{ steps.artifact.outputs.filename }} path: ./build/distributions/content/*/* @@ -166,36 +168,36 @@ jobs: PRIVATE_KEY_PASSWORD: ${{ secrets.PRIVATE_KEY_PASSWORD }} run: ./gradlew publishPlugin - - name: Notify to Discord - run: | - curl -X POST ${{ secrets.DISCORD_WEBHOOK_URL }} \ - -H "Content-Type: application/json" \ - -d '{"msg":"JB plugin ${{ steps.setupvars.outputs.plugin_version }} is released in ${{ steps.setupvars.outputs.slack_notification_channel }} channel"}' - - - name: Post to a Slack channel - id: slack - uses: slackapi/slack-github-action@v1.26.0 - with: - payload: | - { - "blocks": [ - { - "type": "header", - "text": { - "type": "plain_text", - "text": "JB plugin ${{ steps.setupvars.outputs.plugin_version }} is released in ${{ steps.setupvars.outputs.slack_notification_channel }} channel", - "emoji": true - } - }, - { - "type": "section", - "text": { - "type": "mrkdwn", - "text": "by ${{ github.actor }}" - } - } - ] - } - env: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} - SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK +# - name: Notify to Discord +# run: | +# curl -X POST ${{ secrets.DISCORD_WEBHOOK_URL }} \ +# -H "Content-Type: application/json" \ +# -d '{"msg":"JB plugin ${{ steps.setupvars.outputs.plugin_version }} is released in ${{ steps.setupvars.outputs.slack_notification_channel }} channel"}' +# +# - name: Post to a Slack channel +# id: slack +# uses: slackapi/slack-github-action@v1.26.0 +# with: +# payload: | +# { +# "blocks": [ +# { +# "type": "header", +# "text": { +# "type": "plain_text", +# "text": "JB plugin ${{ steps.setupvars.outputs.plugin_version }} is released in ${{ steps.setupvars.outputs.slack_notification_channel }} channel", +# "emoji": true +# } +# }, +# { +# "type": "section", +# "text": { +# "type": "mrkdwn", +# "text": "by ${{ github.actor }}" +# } +# } +# ] +# } +# env: +# SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} +# SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK diff --git a/gradle.properties b/gradle.properties index b6ba129d..5ddcaf22 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,8 +1,8 @@ # IntelliJ Platform Artifacts Repositories -> https://plugins.jetbrains.com/docs/intellij/intellij-artifacts.html pluginGroup = "com.smallcloud" -pluginName = IntelliJ Platform Plugin Template -pluginRepositoryUrl = https://github.com/JetBrains/intellij-platform-plugin-template +pluginName = Refact.ai +pluginRepositoryUrl = https://github.com/smallcloudai/refact-intellij # SemVer format -> https://semver.org pluginVersion = 1.4.2 diff --git a/src/main/resources/META-INF/plugin.xml b/src/main/resources/META-INF/plugin.xml index a1cc7684..db60e898 100644 --- a/src/main/resources/META-INF/plugin.xml +++ b/src/main/resources/META-INF/plugin.xml @@ -101,8 +101,6 @@ integrated into a single package that follows your privacy settings.