Skip to content

Commit

Permalink
chore: enable bintray publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
tynn committed Jan 4, 2021
1 parent ca8c56f commit b2d5eaa
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/gradle-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Publish

on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'

jobs:

publish:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: 15
- uses: actions/cache@v2
with:
path: |
~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
restore-keys: |
${{ runner.os }}-gradle-
- uses: tynn-xyz/semantic-version@v1
with:
versioning: ${{ github.ref }}
id: semver
- run: gradle publishReleasePublicationToBintrayRepository
env:
ORG_GRADLE_PROJECT_version: ${{ steps.semver.outputs.version }}
BINTRAY_KEY: ${{ secrets.BINTRAY_KEY }}
BINTRAY_USER: tynn

release:
runs-on: ubuntu-latest
needs: publish

steps:
- uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body: |
Automated library release
draft: false
prerelease: false
1 change: 1 addition & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
systemProp.org.gradle.internal.publish.checksums.insecure=true
android.useAndroidX=true
kotlin.code.style=official
org.gradle.jvmargs=-Xmx2048m

0 comments on commit b2d5eaa

Please sign in to comment.