Skip to content

Commit

Permalink
build: add tagging requirement when releasing
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas-grgt committed Jan 16, 2024
1 parent f0e866c commit fe61446
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,28 @@
name: Release and Publish package to the Maven Central Repository

on:
push:
tags:
- v*
pull_request:
branches: [ main ]
workflow_dispatch:
inputs:
name:
type: string
description: tag

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Tag Release
uses: tvdias/[email protected]
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
tag: "${{ github.event.inputs.message }}"
- name: Set up Java
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'adopt'
- name: Publish package
- name: Release
env:
JRELEASER_NEXUS2_USERNAME: ${{ secrets.JRELEASER_NEXUS2_USERNAME }}
JRELEASER_NEXUS2_PASSWORD: ${{ secrets.JRELEASER_NEXUS2_PASSWORD }}
Expand Down

0 comments on commit fe61446

Please sign in to comment.