Skip to content

Merge pull request #99 from matheus-corregiari/hotfix/1.6.2 #39

Merge pull request #99 from matheus-corregiari/hotfix/1.6.2

Merge pull request #99 from matheus-corregiari/hotfix/1.6.2 #39

Workflow file for this run

name: Generate Release Tag and Publish Artifacts
on:
push:
branches:
- master
jobs:
# Generates a new tag and submit it into repository <3
generate-tag:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Generate next tag
run: |
git config user.name "GitHub Actions"
git config user.email "github-actions@users.noreply.github.com"
chmod +x .github/scripts/tag.sh
./.github/scripts/tag.sh
# Prepare the field to init publishing stuff
pre-build:
runs-on: ubuntu-latest
outputs:
modules: ${{ steps.publishing-modules.outputs.modules }}
steps:
- uses: actions/checkout@v4
- name: Base Setup
uses: ./.github/actions/setup-gradle
- name: List of Modules
id: publishing-modules
uses: ./.github/actions/publishing-modules
# Publishes everything ^^
publish:
runs-on: ubuntu-latest
needs:
- generate-tag
- pre-build
strategy:
matrix:
module: ${{fromJSON(needs.pre-build.outputs.modules)}}
fail-fast: true
max-parallel: 1
steps:
- uses: actions/checkout@v4
- name: Base Setup
uses: ./.github/actions/setup-gradle
- name: Version Name
uses: ./.github/actions/version-name
with:
# Sonatype Credentials
ossrh_username: ${{ secrets.OSSRH_USERNAME }}
ossrh_password: ${{ secrets.OSSRH_PASSWORD }}
# Sign Credentials
sign_keyid: ${{ secrets.SIGN_KEYID }}
sign_password: ${{ secrets.SIGN_PASSWORD }}
sign_filename: ${{ secrets.SIGN_FILENAME }}
- name: Build ${{ matrix.module }}
run: ./gradlew :${{ matrix.module }}:assembleRelease
- name: Publish ${{ matrix.module }}
run: ./gradlew :${{ matrix.module }}:publishToolkitPublicationToSonatypeRepository