From e8d0365f3773950da3aae7ae10ed25996984c0ae Mon Sep 17 00:00:00 2001
From: Marco Fracassi <39054695+fracassi-marco@users.noreply.github.com>
Date: Tue, 28 Jan 2020 15:26:18 +0100
Subject: [PATCH] Create publish_on_jitpack.yml

---
 .github/workflows/publish_on_jitpack.yml | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)
 create mode 100644 .github/workflows/publish_on_jitpack.yml

diff --git a/.github/workflows/publish_on_jitpack.yml b/.github/workflows/publish_on_jitpack.yml
new file mode 100644
index 0000000..b5d35f6
--- /dev/null
+++ b/.github/workflows/publish_on_jitpack.yml
@@ -0,0 +1,24 @@
+name: Publish
+on:
+  push:
+    tags:
+      - '*'
+jobs:
+  build:
+    runs-on: ubuntu-latest
+    steps:
+    - name: Checkout
+      uses: actions/checkout@v1
+    - name: Test
+      run: ./gradlew clean test
+    - name: Create release
+      uses: actions/create-release@v1
+      env:
+        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+      with:
+        tag_name: ${{ github.ref }}
+        release_name: ${{ github.ref }}
+        draft: false
+        prerelease: false
+    - name: Publish on JitPack
+      run: curl "https://jitpack.io/api/builds/com.github.DaikonWeb/daikon/${{ github.ref }}"