-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from recke96/release-flow
Release flow
- Loading branch information
Showing
5 changed files
with
108 additions
and
9 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
name: Release | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
bump: | ||
description: Which part of the version to bump | ||
required: true | ||
default: patch | ||
type: choice | ||
options: | ||
- patch | ||
- minor | ||
- major | ||
|
||
jobs: | ||
package: | ||
strategy: | ||
matrix: | ||
variant: | ||
- { os: windows-latest, package: exe } | ||
- { os: ubuntu-latest, package: deb } | ||
runs-on: ${{ matrix.variant.os }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup JDK 21 | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: 21 | ||
distribution: temurin | ||
- name: Setup Gradle | ||
uses: gradle/actions/setup-gradle@v3 | ||
with: | ||
gradle-version: wrapper | ||
- name: Build & Package | ||
run: ./gradlew packageDistributionForCurrentOS | ||
- name: Upload Artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: dist-${{ matrix.variant.package }} | ||
path: ${{ github.workspace }}/desktop-app/build/compose/binaries/main/${{ matrix.variant.package }}/*.${{ matrix.variant.package }} | ||
|
||
release: | ||
needs: [package] | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
pull-requests: read | ||
steps: | ||
- name: Download Artifact | ||
uses: actions/download-artifact@v4 | ||
with: | ||
pattern: dist-* | ||
merge-multiple: true | ||
path: ${{ github.workspace }}/packages | ||
- name: Display | ||
run: ls -R ${{ github.workspace }} | ||
- id: release | ||
name: Create Release | ||
uses: rymndhng/[email protected] | ||
with: | ||
name: HEMAtoma <RELEASE_VERSION> | ||
bump_version_scheme: ${{ inputs.bump }} | ||
use_github_release_notes: true | ||
- name: Upload Release Artifacts | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
tag_name: ${{ steps.release.outputs.tag_name }} | ||
files: | | ||
${{ github.workspace }}/packages/*.deb | ||
${{ github.workspace }}/packages/*.exe | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
name: Validate Gradle Wrapper | ||
|
||
on: | ||
pull_request: | ||
branches: [ "main" ] | ||
|
||
jobs: | ||
build: | ||
runs-on: "ubuntu-latest" | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Validate Gradle Wrapper | ||
uses: gradle/wrapper-validation-action@v2 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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