Skip to content

Commit

Permalink
Merge GitHub release steps to maven release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Ndiritu committed May 23, 2024
1 parent 62019c4 commit 98cc4b0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 33 deletions.
33 changes: 0 additions & 33 deletions .github/workflows/git-release.yml

This file was deleted.

10 changes: 10 additions & 0 deletions .github/workflows/preview-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ env:
PREVIEW_TASK: publishSnapshotPublicationToSonatypeSnapshotRepository
PUBLISH_TASK: publishMavenCentralReleasePublicationToSonatypeRepository

permissions:
contents: write

jobs:
maven_Preview:
if: ${{ github.ref == 'refs/heads/main' }}
Expand Down Expand Up @@ -96,3 +99,10 @@ jobs:
gradle.properties
**/gradle/**
Scripts/**
- name: GitHub Release
uses: softprops/action-gh-release@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
fail_on_unmatched_files: true
files: |
build/**/*.jar

0 comments on commit 98cc4b0

Please sign in to comment.