-
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.
- Loading branch information
1 parent
85d0acd
commit 375d259
Showing
9 changed files
with
424 additions
and
100 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,60 @@ | ||
name: build-release-on-main-push | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build-release-on-main-push: | ||
if: ${{ !contains(github.event.head_commit.message, '[release]') }} # prevent recursive releases | ||
|
||
permissions: | ||
contents: write | ||
packages: write | ||
|
||
strategy: | ||
matrix: | ||
os: [ ubuntu-latest, windows-latest, macos-13, macos-14 ] | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: main | ||
|
||
- name: setup-jdk | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: 21 | ||
distribution: 'temurin' | ||
cache: 'maven' | ||
|
||
- name: maven-build-verify | ||
run: mvn --batch-mode -Pnative-jpackage clean verify | ||
|
||
- name: configure-git-user | ||
uses: qoomon/actions--setup-git@v1 | ||
with: | ||
user: bot | ||
|
||
- name: get-latest-tag | ||
id: get-latest-tag | ||
uses: WyriHaximus/github-action-get-previous-tag@v1 | ||
|
||
- name: create-release-notes | ||
uses: softprops/action-gh-release@v2 | ||
with: | ||
generate_release_notes: true | ||
tag_name: ${{ steps.get-latest-tag.outputs.tag }} | ||
files: target/dist/* | ||
|
||
- name: merge-main-to-dev | ||
run: | | ||
git fetch --unshallow | ||
git checkout dev | ||
git pull | ||
git merge --no-ff main -m "[release] auto-merge released main back to dev" | ||
git push |
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,26 @@ | ||
name: dependabot-pr-auto-merge | ||
|
||
on: pull_request | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: write | ||
|
||
jobs: | ||
dependabot-pr-auto-merge: | ||
runs-on: ubuntu-latest | ||
|
||
if: github.actor == 'dependabot[bot]' | ||
steps: | ||
- name: dependabot-pr-fetch-metadata | ||
uses: dependabot/fetch-metadata@v2 | ||
|
||
- name: dependabot-pr-approve | ||
run: gh pr review --approve "$PR_URL" | ||
env: | ||
PR_URL: ${{github.event.pull_request.html_url}} | ||
|
||
- name: dependabot-pr-auto-merge | ||
run: gh pr merge --auto --merge "$PR_URL" | ||
env: | ||
PR_URL: ${{github.event.pull_request.html_url}} |
This file was deleted.
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
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
Oops, something went wrong.