-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Cosmetics * Get rid of @implNote as it creates issues with javadoc * Make changes in order to be able to deploy to Maven Central from local * Rename * Use artifact id * Remove GPG keyname * Move Java version to environment variable * Add release workflow * Not needed * Hard code as this seems to work
- Loading branch information
Showing
6 changed files
with
173 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: CI | ||
name: Build | ||
|
||
on: | ||
push: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
|
||
env: | ||
ECOS_VERSION: v2.0.10 | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up JDK | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '21' | ||
distribution: 'temurin' | ||
cache: maven | ||
- name: Cache ECOS shared library | ||
id: cache-ecos | ||
uses: actions/cache@v3 | ||
env: | ||
cache-name: cache-ecos | ||
with: | ||
path: ./libecos.so | ||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ env.ECOS_VERSION }} | ||
- if: ${{ steps.cache-ecos.outputs.cache-hit != 'true' }} | ||
name: Download ECOS shared library | ||
run: curl -L -O https://github.com/atraplet/ecos/releases/download/$ECOS_VERSION/libecos.so | ||
- name: Build with Maven | ||
env: | ||
LD_LIBRARY_PATH: ./ | ||
run: mvn -B clean package --file pom.xml | ||
|
||
release: | ||
runs-on: ubuntu-latest | ||
needs: [ build ] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up JDK | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '21' | ||
distribution: 'temurin' | ||
server-id: ossrh | ||
server-username: MAVEN_USERNAME | ||
server-password: MAVEN_PASSWORD | ||
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} | ||
- name: Publish to Maven Central | ||
run: mvn -B clean deploy -P release --file pom.xml | ||
env: | ||
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }} | ||
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }} | ||
- name: Create Release | ||
uses: ncipollo/release-action@v1 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters