Skip to content

Commit

Permalink
Publish to maven central (#191)
Browse files Browse the repository at this point in the history
* Creating sample module

* gradle config

* comfiguring local publish

* publish from github actions
  • Loading branch information
leandroBorgesFerreira committed May 19, 2023
1 parent d017e55 commit 47a0e1c
Show file tree
Hide file tree
Showing 83 changed files with 824 additions and 1,080 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Publish

on:
release:
types: [released]

jobs:
publish:
name: Release build and publish
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3.1.0
- name: Set up JDK 11
uses: actions/setup-java@v3.5.1
with:
distribution: adopt
java-version: 11
- name: Release build
run: ./gradlew assemble --scan
- name: Publish to MavenCentral
run: ./gradlew publishLoadingButtonPublicationToSonatypeRepository --max-workers 1 closeAndReleaseSonatypeStagingRepository --scan
env:
SONATYPE_NEXUS_USERNAME: ${{ secrets.SONATYPE_NEXUS_USERNAME }}
SONATYPE_NEXUS_PASSWORD: ${{ secrets.SONATYPE_NEXUS_PASSWORD }}
SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }}
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
SONATYPE_STAGING_PROFILE_ID: ${{ secrets.SONATYPE_STAGING_PROFILE_ID }}
1 change: 0 additions & 1 deletion app/.gitignore

This file was deleted.

46 changes: 0 additions & 46 deletions app/build.gradle

This file was deleted.

17 changes: 0 additions & 17 deletions app/proguard-rules.pro

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

6 changes: 0 additions & 6 deletions app/src/main/res/drawable/button_shape_default.xml

This file was deleted.

9 changes: 0 additions & 9 deletions app/src/main/res/drawable/button_shape_default_rounded.xml

This file was deleted.

Binary file removed app/src/main/res/drawable/ic_alarm_on_white_48dp.png
Binary file not shown.
Binary file not shown.
Binary file removed app/src/main/res/drawable/ic_done_white_48dp.png
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit 47a0e1c

Please sign in to comment.