Skip to content

Commit 21dd569

Browse files
erenalpaslanmehmet6parmakappcent
authored andcommitted
Feature/GitHub actions (#60)
#4 Includes changes related with publishing on Jitpack.io ``` allprojects { repositories { ... maven { url 'https://jitpack.io' } } } ``` ``` dependencies { implementation 'com.github.AppcentMobile:helium-java-sdk:1.0.0-SNAPSHOT' } ``` Co-authored-by: Eren <[email protected]>
1 parent 2c2dc80 commit 21dd569

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

.github/workflows/maven-publish.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@ on:
66
jobs:
77
publish:
88
runs-on: ubuntu-latest
9-
permissions:
10-
contents: read
11-
packages: write
9+
permissions: write-all
1210
steps:
1311
- uses: actions/checkout@v3
1412
- uses: actions/setup-java@v3
@@ -18,4 +16,14 @@ jobs:
1816
- name: Publish package
1917
run: mvn --batch-mode deploy
2018
env:
21-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20+
- name: Create Release ✅
21+
id: create_release
22+
uses: actions/create-release@v1
23+
env:
24+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25+
with:
26+
tag_name: ${{ github.ref_name }}
27+
release_name: ${{ github.ref_name }}
28+
draft: false
29+
prerelease: false

jitpack.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
jdk:
2+
- openjdk8

0 commit comments

Comments
 (0)