Skip to content

Commit

Permalink
Create build.yml (#132)
Browse files Browse the repository at this point in the history
* Create build.yml

* Don't build submodules (we have only 1 module)
Remove obsolete workflow directory
  • Loading branch information
johanvos authored Sep 16, 2023
1 parent bda1085 commit 37a0223
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflow/build.yml → .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ on:
branches: [main]

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

Expand All @@ -17,21 +17,21 @@ jobs:
with:
java-version: 17
distribution: 'oracle'
cache: 'maven'
cache: 'maven'
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_CENTRAL_TOKEN

- name: Build project
- name: Build project
run: |
mvn -B -ntp verify -f strange
mvn -B -ntp verify
- name: Publish Snapshots
if: github.ref == 'refs/heads/main'
run: |
ver=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
if [[ $ver == *"SNAPSHOT"* ]]; then
mvn -B -ntp deploy -f strange
mvn -B -ntp deploy
fi
shell: bash
env:
Expand Down

0 comments on commit 37a0223

Please sign in to comment.