Skip to content
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

Update workflows #479

Merged
merged 3 commits into from
Mar 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/workflows/on_build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Run checks

on:
push:
pull_request:
branches:
- master

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
cache: 'maven'

- name: Build with Maven
run: mvn --batch-mode -P github package

Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Create pre-release

on:
push:
tags:
- "pre-release-v*.*.*"
release:
types:
- prereleased

jobs:
build:
Expand All @@ -17,6 +17,7 @@ jobs:
with:
java-version: '17'
distribution: 'temurin'
cache: 'maven'

- name: Set version with Maven
run: mvn --batch-mode -U versions:set -DnewVersion=${{github.ref_name}}
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/build.yml → .github/workflows/on_release.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
name: Main
name: Create release

on:
push:
tags:
- "v*.*.*"

release:
types:
- released
jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -17,6 +16,7 @@ jobs:
with:
java-version: '17'
distribution: 'temurin'
cache: 'maven'

- name: Set version with Maven
run: mvn --batch-mode -U versions:set -DnewVersion=${{github.ref_name}}
Expand Down