-
-
Notifications
You must be signed in to change notification settings - Fork 14
ci(release): add release pipeline and switch versioning to git-semver #219
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
d076204
Add release workflow that attaches shaded JAR to GitHub Releases
amrdoh 0520914
Add release workflow + switch to git-semver plugin for versioning
num0001 a736fa7
Add release workflow that attaches shaded JAR to GitHub Releases
amrdoh d499b78
Add release workflow + switch to git-semver plugin for versioning
num0001 562d542
ci(release): attach shaded JAR to published GitHub Releases
num0001 b7ff810
Merge branch 'feat/release-workflow-and-semver' of https://github.com…
num0001 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| name-template: 'v$RESOLVED_VERSION' | ||
| tag-template: 'v$RESOLVED_VERSION' | ||
|
|
||
| categories: | ||
| - title: 'Features' | ||
| labels: | ||
| - 'feature' | ||
| - 'enhancement' | ||
| - title: 'Bug Fixes' | ||
| labels: | ||
| - 'fix' | ||
|
num0001 marked this conversation as resolved.
|
||
| - 'bug' | ||
| - title: 'Maintenance' | ||
| labels: | ||
| - 'chore' | ||
|
num0001 marked this conversation as resolved.
|
||
| - 'dependencies' | ||
| - 'documentation' | ||
|
|
||
| change-template: '- $TITLE (#$NUMBER) @$AUTHOR' | ||
| change-title-escapes: '\<*_&' | ||
|
|
||
| template: | | ||
| ## What's Changed | ||
|
|
||
| $CHANGES | ||
|
|
||
|
num0001 marked this conversation as resolved.
|
||
| **Full Changelog**: https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...v$RESOLVED_VERSION | ||
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| name: Update Release Draft | ||
|
|
||
| on: | ||
| push: | ||
| branches: [main] | ||
|
|
||
| permissions: | ||
| contents: write | ||
| pull-requests: read | ||
|
|
||
| jobs: | ||
| update-draft: | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v5 | ||
| with: | ||
| fetch-depth: 0 | ||
| fetch-tags: true | ||
|
|
||
| - name: Set up JDK 21 | ||
| uses: actions/setup-java@v5 | ||
| with: | ||
| java-version: '21' | ||
| distribution: 'temurin' | ||
|
|
||
| - name: Setup Gradle | ||
| uses: gradle/actions/setup-gradle@v4 | ||
|
|
||
| - name: Compute next version | ||
| id: version | ||
| run: | | ||
| NEXT="$(./gradlew -q printVersion)" | ||
|
num0001 marked this conversation as resolved.
|
||
| echo "next=${NEXT}" >> "$GITHUB_OUTPUT" | ||
|
|
||
| - name: Update release draft | ||
| uses: release-drafter/release-drafter@v6 | ||
|
num0001 marked this conversation as resolved.
|
||
| with: | ||
| version: ${{ steps.version.outputs.next }} | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,36 @@ | ||||||
| name: Attach Release Artifacts | ||||||
|
|
||||||
| on: | ||||||
| release: | ||||||
| types: [published] | ||||||
|
|
||||||
| jobs: | ||||||
| build: | ||||||
| runs-on: ubuntu-latest | ||||||
| permissions: | ||||||
| contents: write | ||||||
|
|
||||||
| steps: | ||||||
| - uses: actions/checkout@v5 | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| with: | ||||||
| fetch-depth: 0 | ||||||
| fetch-tags: true | ||||||
| ref: ${{ github.event.release.tag_name }} | ||||||
|
|
||||||
| - name: Set up JDK 21 | ||||||
| uses: actions/setup-java@v5 | ||||||
| with: | ||||||
| java-version: '21' | ||||||
| distribution: 'temurin' | ||||||
|
|
||||||
| - name: Setup Gradle | ||||||
| uses: gradle/actions/setup-gradle@v4 | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
|
||||||
| - name: Build with Gradle Wrapper | ||||||
| run: ./gradlew clean build | ||||||
|
|
||||||
| - name: Attach shaded JAR to release | ||||||
| uses: softprops/action-gh-release@v2 | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| with: | ||||||
| files: build/libs/*.jar | ||||||
| fail_on_unmatched_files: true | ||||||
|
num0001 marked this conversation as resolved.
|
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| { | ||
| "java.configuration.updateBuildConfiguration": "interactive" | ||
| } |
This file contains hidden or 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
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.