Skip to content

Commit

Permalink
Publish IntelliJ plugin to stable
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielJette committed Dec 30, 2022
1 parent db29037 commit dcde52b
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 17 deletions.
35 changes: 18 additions & 17 deletions .github/workflows/intellij_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,12 @@
## JBIJPPTPL

name: Build IntelliJ Platform Plugin
on:
[push, pull_request, workflow_dispatch]
on:
push:
branches:
- main
- 'intellij**'
workflow_dispatch:

jobs:

Expand All @@ -28,11 +32,11 @@ jobs:

# Check out current repository
- name: Fetch Sources
uses: actions/checkout@v2
uses: actions/checkout@v3.2.0

# Validate wrapper
- name: Gradle Wrapper Validation
uses: gradle/wrapper-validation-action@v1
uses: gradle/wrapper-validation-action@v1.0.5

# Run verifyPlugin and test Gradle tasks
test:
Expand All @@ -43,17 +47,18 @@ jobs:

# Check out current repository
- name: Fetch Sources
uses: actions/checkout@v2
uses: actions/checkout@v3.2.0

# Setup Java 11 environment for the next steps
- name: Setup Java
uses: actions/setup-java@v1
uses: actions/setup-java@v3.9.0
with:
java-version: 11
distribution: 'zulu'

# Cache Gradle dependencies
- name: Setup Cache
uses: actions/cache@v1
uses: actions/cache@v3.2.2
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
Expand All @@ -67,10 +72,6 @@ jobs:
- name: Verify Plugin
run: ./gradlew IntelliJ:verifyPlugin

# Run test Gradle task
- name: Run Tests
run: ./gradlew IntelliJ:test

# Build plugin with buildPlugin Gradle task and provide the artifact for the next workflow jobs
# Requires test job to be passed
build:
Expand All @@ -86,17 +87,18 @@ jobs:

# Check out current repository
- name: Fetch Sources
uses: actions/checkout@v2
uses: actions/checkout@v3.2.0

# Setup Java 11 environment for the next steps
- name: Setup Java
uses: actions/setup-java@v1
uses: actions/setup-java@v3.9.0
with:
java-version: 11
distribution: 'zulu'

# Cache Gradle dependencies
- name: Setup Cache
uses: actions/cache@v1
uses: actions/cache@v3.2.2
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
Expand Down Expand Up @@ -162,14 +164,13 @@ jobs:
# If accepted and published, release workflow would be triggered
releaseDraft:
name: Release Draft
if: github.ref == 'refs/heads/main'
needs: [build, verify]
runs-on: ubuntu-latest
steps:

# Check out current repository
- name: Fetch Sources
uses: actions/checkout@v2
uses: actions/checkout@v3.2.0

# Remove old release drafts by using the curl request for the available releases with draft flag
- name: Remove Old Release Drafts
Expand All @@ -185,7 +186,7 @@ jobs:
# Create new release draft - which is not publicly visible and requires manual acceptance
- name: Create Release Draft
id: createDraft
uses: actions/create-release@v1
uses: actions/create-release@v1.1.4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand Down
8 changes: 8 additions & 0 deletions Plugins/IntelliJ/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

## [Unreleased]

## [2.0.0-alpha02]

- Public availability on IntelliJ Marketplace

## [2.0.0-alpha01]

- Add support for Android Studio Chipmunk and Dolphin

## [1.2.0-alpha02]

- Support both new (dev.testify) and legacy (com.shopify) annotations.
Expand Down

0 comments on commit dcde52b

Please sign in to comment.