Skip to content

Commit

Permalink
build: add tagging requirement when releasing
Browse files Browse the repository at this point in the history
build: add tagging requirement when releasing
  • Loading branch information
jonas-grgt committed Jan 16, 2024
1 parent f0e866c commit 7c2bc0f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 37 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
31 changes: 0 additions & 31 deletions .github/workflows/tag.yml

This file was deleted.

0 comments on commit 7c2bc0f

Please sign in to comment.