Skip to content

Commit

Permalink
add github pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
danielefongo committed Feb 14, 2020
1 parent b8da38e commit d448360
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/continuous_integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: Continuous Integration
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Test
run: ./gradlew clean test
28 changes: 28 additions & 0 deletions .github/workflows/publish_on_jitpack.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Publish on JitPack
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
env:
GITHUB_REF: ${{ github.ref }}
run: |
echo "https://jitpack.io/api/builds/com.github.${{ github.repository }}/${GITHUB_REF##*/}"
curl "https://jitpack.io/api/builds/com.github.${{ github.repository }}/${GITHUB_REF##*/}"

0 comments on commit d448360

Please sign in to comment.