Skip to content

Commit

Permalink
Setup github action workflow for publishing library
Browse files Browse the repository at this point in the history
  • Loading branch information
shubhamsinghmutualmobile committed Apr 19, 2022
1 parent dac7998 commit be24618
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
27 changes: 27 additions & 0 deletions .github/workflows/publishRelease.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Publish Barricade2
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
gradle-rc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: 11
- uses: gradle/gradle-build-action@v2
with:
gradle-version: release-candidate
- name: Build and publish to Maven
env:
SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }}
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
PGP_KEY_CONTENTS: ${{ secrets.PGP_KEY_CONTENTS }}
run: ./gradlew publishReleasePublicationToSonatypeRepository closeAndReleaseSonatypeStagingRepository
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ kotlin.code.style=official
# resources declared in the library itself and none from the library's dependencies,
# thereby reducing the size of the R class for that library
android.nonTransitiveRClass=true
org.gradle.java.home=/Users/shubhamsingh/Library/Java/JavaVirtualMachines/corretto-11.0.14/Contents/Home
#org.gradle.java.home=/Users/shubhamsingh/Library/Java/JavaVirtualMachines/corretto-11.0.14/Contents/Home

0 comments on commit be24618

Please sign in to comment.