Publish package to the Maven Central Repository #7
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 | |
on: | |
workflow_dispatch: | |
inputs: | |
version: | |
description: 'Version' | |
required: true | |
jobs: | |
tagging: | |
name: Release of [${{ github.event.inputs.version }}] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
ref: release/${{ github.event.inputs.version }} | |
fetch-depth: 0 | |
- name: Config Git | |
run: | | |
git config user.name ${{ github.actor }} | |
git config user.email "${{ github.actor }}@users.noreply.github.com" | |
- name: Merge on master | |
run: | | |
git checkout master | |
git merge --no-ff release/${{ github.event.inputs.version }} | |
git push | |
- name: Tag on master | |
run: | | |
git tag --annotate --message 'Release ${{ github.event.inputs.version }}' ${{ github.event.inputs.version }} | |
git push origin ${{ github.event.inputs.version }} | |
- name: Merge on develop | |
run: | | |
git checkout develop | |
git merge --no-ff release/${{ github.event.inputs.version }} | |
git push | |
- name: Delete released branch | |
run: git push origin :release/${{ github.event.inputs.version }} |