Explorar o código

Added github actions

Vadik Sirekanyan %!s(int64=2) %!d(string=hai) anos
pai
achega
09e478f659
Modificáronse 2 ficheiros con 26 adicións e 0 borrados
  1. 14 0
      .github/workflows/install.yml
  2. 12 0
      .github/workflows/publish.yml

+ 14 - 0
.github/workflows/install.yml

@@ -0,0 +1,14 @@
+on:
+  workflow_dispatch:
+  push:
+jobs:
+  install:
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v3
+      - shell: bash
+        run: ./gradlew publish
+      - shell: bash
+        run: ./apply-version-checker.sh
+      - shell: bash
+        run: ./gradlew versionChecker

+ 12 - 0
.github/workflows/publish.yml

@@ -0,0 +1,12 @@
+on:
+  workflow_dispatch:
+  push:
+    tags:
+      - v*
+jobs:
+  publish:
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v3
+      - shell: bash
+        run: ./gradlew clean publishPlugins -Pgradle.publish.key=${{ secrets.GRADLE_PUBLISH_KEY }} -Pgradle.publish.secret=${{ secrets.GRADLE_PUBLISH_SECRET }}