Skip to content

Commit

Permalink
Updating github workflows for build and release
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaytotomato committed Jul 26, 2024
1 parent 97a8e1b commit 530b2be
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Build

on:
workflow_call: # called by other github actions
push:
paths:
- 'src/**'
Expand Down
15 changes: 6 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,13 @@ on:
- 'v*.*.*'

jobs:
build:

call-build-and-test:
name: "Build and Test"
uses: ./.github/workflows/build.yml

release:
name: "Release"
runs-on: ubuntu-latest

steps:
Expand All @@ -23,14 +28,6 @@ jobs:
- name: Setup Maven Settings
uses: s4u/maven-settings-action@v3.0.0

- name: Cache Maven packages
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Install Maven dependencies
run: mvn install

Expand Down

0 comments on commit 530b2be

Please sign in to comment.