Skip to content

refactor!: improve reducer API #11

refactor!: improve reducer API

refactor!: improve reducer API #11

Workflow file for this run

name: Publish
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
jobs:
publish:
runs-on: ubuntu-latest
outputs:
version: ${{ steps.semver.outputs.version }}
steps:
- uses: actions/checkout@v4
- uses: gradle/wrapper-validation-action@v1
- uses: actions/setup-java@v4
with:
distribution: adopt
java-version: 17
- uses: tynn-xyz/semantic-version@v1
with:
versioning: ${{ github.ref }}
id: semver
- uses: gradle/gradle-build-action@v2
env:
ORG_GRADLE_PROJECT_version: ${{ steps.semver.outputs.version }}
ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.NEXUS_PASSWORD }}
ORG_GRADLE_PROJECT_sonatypeUsername: ${{ secrets.NEXUS_USERNAME }}
PROJECT_URL: 'https://github.com/${{ github.repository }}'
SIGNING_PASSWORD: ${{ secrets.PGP_PASSWORD }}
SIGNING_KEY: ${{ secrets.PGP_KEY }}
with:
arguments: publishReleasePublicationToSonatypeRepository closeSonatypeStagingRepository
cache-read-only: true
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: ${{ needs.publish.outputs.version }}
body: |
Automated library release
draft: false
prerelease: false