diff --git a/.github/workflows/deploy-alpha.yml b/.github/workflows/deploy-alpha.yml
new file mode 100644
index 0000000..186fc6f
--- /dev/null
+++ b/.github/workflows/deploy-alpha.yml
@@ -0,0 +1,64 @@
+name: Test and Publish
+
+on:
+ push:
+ branches:
+ - main
+ tags:
+ - 'alpha-*'
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+
+ steps:
+ - name: Checkout code
+ uses: actions/checkout@v3
+
+ - name: Set up JDK 17
+ uses: actions/setup-java@v3
+ with:
+ java-version: '17'
+ distribution: 'adopt'
+
+ - name: Cache Gradle packages
+ uses: actions/cache@v3
+ with:
+ path: |
+ ~/.gradle/caches
+ ~/.gradle/wrapper
+ key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
+ restore-keys: |
+ ${{ runner.os }}-gradle-
+
+ - name: Grant execute permission for gradlew
+ run: chmod +x gradlew
+
+ - name: Build with Gradle
+ run: ./gradlew build
+
+ - name: Run tests
+ run: ./gradlew test
+
+ publish:
+ if: startsWith(github.ref, 'refs/tags/alpha')
+ runs-on: ubuntu-latest
+
+ steps:
+ - name: Checkout code
+ uses: actions/checkout@v3
+
+ - name: Set up JDK 17
+ uses: actions/setup-java@v3
+ with:
+ java-version: '17'
+ distribution: 'adopt'
+
+ - name: Grant execute permission for gradlew
+ run: chmod +x gradlew
+
+ - name: Publish Plugin
+ run: ./gradlew publishPlugin
+ env:
+ PLUGIN_REPO: ${{ secrets.PLUGIN_REPO }}
+ PLUGIN_TOKEN: ${{ secrets.PLUGIN_TOKEN }}
\ No newline at end of file
diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml
new file mode 100644
index 0000000..42de9a7
--- /dev/null
+++ b/.github/workflows/test.yaml
@@ -0,0 +1,39 @@
+name: Test on Merge
+
+on:
+ push:
+ branches:
+ - main
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+
+ steps:
+ - name: Checkout code
+ uses: actions/checkout@v3
+
+ - name: Set up JDK 17
+ uses: actions/setup-java@v3
+ with:
+ java-version: '17'
+ distribution: 'adopt'
+
+ - name: Cache Gradle packages
+ uses: actions/cache@v3
+ with:
+ path: |
+ ~/.gradle/caches
+ ~/.gradle/wrapper
+ key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
+ restore-keys: |
+ ${{ runner.os }}-gradle-
+
+ - name: Grant execute permission for gradlew
+ run: chmod +x gradlew
+
+ - name: Build with Gradle
+ run: ./gradlew build
+
+ - name: Run tests
+ run: ./gradlew test
\ No newline at end of file
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index a6ba91a..d315991 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -4,22 +4,11 @@
-
-
-
-
-
-
-
+
+
+
-
-
-
-
-
-
-
-
+
@@ -48,6 +37,22 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -91,6 +96,7 @@
"Gradle.Keytool [signPlugin].executor": "Run",
"Gradle.Run Plugin.executor": "Run",
"Gradle.keytoolj [setupDependencies].executor": "Run",
+ "Gradle.ssl-toolbox [publishPlugin].executor": "Run",
"Gradle.ssl-toolbox [setupDependencies].executor": "Run",
"RunOnceActivity.ShowReadmeOnStart": "true",
"SHARE_PROJECT_CONFIGURATION_FILES": "true",
@@ -125,14 +131,12 @@
-
+
@@ -156,25 +160,43 @@
false
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+ true
+ true
+ false
+ false
+
+
+
@@ -182,8 +204,8 @@
-
-
+
+
@@ -210,7 +232,9 @@
-
+
+
+
@@ -300,7 +324,15 @@
1725504767201
-
+
+
+ 1725514436334
+
+
+
+ 1725514436334
+
+
@@ -331,7 +363,8 @@
-
+
+
diff --git a/build.gradle.kts b/build.gradle.kts
index 460a6cc..2ef3a05 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -43,5 +43,7 @@ tasks {
publishPlugin {
token.set(System.getenv("PUBLISH_TOKEN"))
+ channels.set(listOf(System.getenv("CHANNEL")))
+
}
}