Release new version #122
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release new version | |
on: | |
release: | |
types: [published] | |
workflow_dispatch: | |
inputs: | |
tag_name: | |
description: 'Tag name to publish' | |
required: true | |
jobs: | |
build: | |
uses: ./.github/workflows/build.yml | |
publish: | |
runs-on: ubuntu-latest | |
needs: build | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.event.release.tag_name || github.event.inputs.tag_name}} | |
- name: Download uber-jar | |
uses: actions/[email protected] | |
with: | |
name: ${{ needs.build.outputs.uber-jar }} | |
- name: Download sources-jar | |
uses: actions/[email protected] | |
with: | |
name: ${{ needs.build.outputs.sources-jar }} | |
- uses: xresloader/upload-to-github-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GH_PAT }} | |
with: | |
file: ${{ needs.build.outputs.uber-jar }} | |
tags: true | |
draft: false | |
- name: Deploy to Maven Central repository | |
run: ./gradlew publish | |
env: | |
MAVEN_REPO_USERNAME: ${{ secrets.MAVEN_REPO_USERNAME }} | |
MAVEN_REPO_PASSWORD: ${{ secrets.MAVEN_REPO_PASSWORD }} | |
GRADLE_SIGNING_KEY: ${{ secrets.GRADLE_SIGNING_KEY }} | |
GRADLE_SIGNING_PASSWORD: ${{ secrets.GRADLE_SIGNING_PASSWORD }} |