Skip to content
This repository has been archived by the owner on May 6, 2024. It is now read-only.

chore(deps): update natiginfo/action-detekt-all action to v1.23.1 #19

chore(deps): update natiginfo/action-detekt-all action to v1.23.1

chore(deps): update natiginfo/action-detekt-all action to v1.23.1 #19

name: Push a new tag with patch update
on:
push:
branches:
- main
jobs:
tag_create:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-ecosystem/action-get-latest-tag@v1
id: get-latest-tag
- uses: actions-ecosystem/action-bump-semver@v1
id: bump-semver
with:
current_version: ${{ steps.get-latest-tag.outputs.tag }}
level: patch
- uses: actions-ecosystem/action-push-tag@v1
with:
tag: ${{ steps.bump-semver.outputs.new_version }}
message: 'Release ${{ steps.bump-semver.outputs.new_version }}'
- name: "Set output"
id: set-output
run: echo "mix_drinks_core_version=${{ steps.bump-semver.outputs.new_version }}" >> $GITHUB_OUTPUT
- name: "Print output"
run: echo ${{ steps.set-output.outputs.mix_drinks_core_version }}
outputs:
output_write_mix_drinks_code_version: ${{ steps.set-output.outputs.mix_drinks_core_version }}
deploy:
needs: [ tag_create ]
runs-on: macos-12
steps:
- name: Print MIX_DRINKS_CORE_VERSION
run: echo ${{ needs.tag_create.outputs.output_write_mix_drinks_code_version }}
- name: "checkout"
uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 11
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Execute Gradle build
env:
MIX_DRINKS_CORE_VERSION: ${{ needs.tag_create.outputs.output_write_mix_drinks_code_version }}
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
GPG_PRIVATE_PASSWORD: ${{ secrets.GPG_PRIVATE_PASSWORD }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
run: ./gradlew publishAllPublicationsToMavenRepository