Skip to content

Commit

Permalink
bump version number; attempt to use github action to upload to maven …
Browse files Browse the repository at this point in the history
…central
  • Loading branch information
pabender committed Jul 26, 2020
1 parent c0ae752 commit 7c81261
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 2 deletions.
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 7c81261

Please sign in to comment.