Skip to content

Commit

Permalink
Merge pull request #168 from pabender/master
Browse files Browse the repository at this point in the history
update library version
  • Loading branch information
pabender authored Jul 26, 2020
2 parents 5a6cebc + 7c81261 commit 9ba5b0e
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 2 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/PRCiChecks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#based on https://docs.github.com/en/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: Java CI

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Build with Maven
env:
DISPLAY: ":99.0"
run: xvfb-run --auto-servernum mvn -B package --file pom.xml
23 changes: 23 additions & 0 deletions .github/workflows/PublishToMavenCentral.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# based on https://docs.github.com/en/actions/language-and-framework-guides/publishing-java-packages-with-maven
name: Publish package to the Maven Central Repository
on:
release:
types: [created]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Maven Central Repository
uses: actions/setup-java@v1
with:
java-version: 1.8
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
- name: Publish package
run: xvfb-run --auto-servernum mvn -B deploy
env:
DISPLAY: ":99.0"
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
2 changes: 1 addition & 1 deletion manifest
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ Specification-Title: OpenLCB
Specification-Version: 0.7.4
Specification-Vendor: OpenLCB group
Package-Title: openlcb
Package-Version: 0.7.26
Package-Version: 0.7.27
Package-Vendor: OpenLCB group

2 changes: 1 addition & 1 deletion src/org/openlcb/Version.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public class Version {

/* Library modifier - updated periodically
*/
static final public int libMod = 26;
static final public int libMod = 27;

/**
* Checks if the current specification version is above a specific threshold.
Expand Down

0 comments on commit 9ba5b0e

Please sign in to comment.