-
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use creditcard number v3.0.0, and use Maven to build
- Loading branch information
Showing
20 changed files
with
544 additions
and
709 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 |
---|---|---|
@@ -0,0 +1 @@ | ||
* @sualeh |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file was deleted.
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 was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: Quick Build | ||
|
||
on: push | ||
|
||
jobs: | ||
build: | ||
name: Quick build | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
# SETUP BUILD ENVIRONMENT | ||
- id: cache-m2 | ||
name: Cache Maven packages | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.m2 | ||
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} | ||
restore-keys: ${{ runner.os }}-m2 | ||
- id: checkout-code | ||
name: Checkout code | ||
uses: actions/checkout@v2 | ||
- id: setup-jdk | ||
name: Set up JDK | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 8 | ||
- id: show-environment | ||
name: Show environment | ||
run: | | ||
# Show environment | ||
echo github.repository: ${{ github.repository }} | ||
echo github.ref: ${{ github.head_ref || github.ref }} | ||
echo github.sha: ${{ github.sha }} | ||
mvn -v | ||
cat ~/.m2/settings.xml | ||
# BUILD AND TEST | ||
- id: build-test | ||
name: Build all modules and run tests | ||
run: | | ||
# Build | ||
mvn \ | ||
--no-transfer-progress \ | ||
--batch-mode \ | ||
package |
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,98 @@ | ||
name: Create Release | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches-ignore: | ||
- '*' | ||
tags: | ||
- v[0-9]+.[0-9]+.[0-9]+ | ||
- v[0-9]+.[0-9]+.[0-9]+-[A-Z] | ||
|
||
jobs: | ||
build: | ||
name: Create Release | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
# SETUP BUILD ENVIRONMENT | ||
- id: cache-m2 | ||
name: Cache Maven packages | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.m2 | ||
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} | ||
restore-keys: ${{ runner.os }}-m2 | ||
- id: checkout-code | ||
name: Checkout code | ||
uses: actions/checkout@v2 | ||
- id: setup-jdk | ||
name: Setup JDK | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 8 | ||
server-id: sonatype-nexus | ||
server-username: MAVEN_USERNAME | ||
server-password: MAVEN_PASSWORD | ||
- id: show-environment | ||
name: Show environment | ||
run: | | ||
# Show environment | ||
echo github.repository: ${{ github.repository }} | ||
echo github.ref: ${{ github.head_ref || github.ref }} | ||
echo github.sha: ${{ github.sha }} | ||
mvn -v | ||
cat ~/.m2/settings.xml | ||
# BUILD FOR DISTRIBUTION | ||
- id: build | ||
name: Build and test for distribution | ||
run: | | ||
# Build | ||
mvn \ | ||
--no-transfer-progress \ | ||
--batch-mode \ | ||
install | ||
# CREATE GITHUB RELEASE AND ADD ASSETS | ||
- id: create-release | ||
name: Create GitHub release | ||
uses: actions/create-release@latest | ||
if: startsWith(github.ref, 'refs/tags/') | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{ github.ref }} | ||
release_name: ${{ github.ref }} | ||
body: | | ||
Credit Card Number ${{ github.event.release.tag_name }} release at last commit ${{ github.sha }} | ||
draft: false | ||
prerelease: false | ||
|
||
# PUBLISH TO CENTRAL REPOSITORY | ||
- id: install-secret-key | ||
name: Install secret key | ||
if: startsWith(github.ref, 'refs/tags/') | ||
# Note: OSSRH_GPG_SECRET_KEY is exported using gpg --export-secret-keys -a <keyid> | ||
# and has newlines substituted with a literal \n | ||
run: | | ||
# Install secret key | ||
cat <(echo -e "${{ secrets.OSSRH_GPG_SECRET_KEY }}") | gpg --batch --import | ||
gpg --list-secret-keys --keyid-format LONG | ||
- id: publish-to-central | ||
name: Publish to Central Repository | ||
if: startsWith(github.ref, 'refs/tags/') | ||
env: | ||
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }} | ||
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }} | ||
run: | | ||
# Publish to Central Repository | ||
export GPG_TTY=$(tty) | ||
mvn \ | ||
--no-transfer-progress \ | ||
--batch-mode \ | ||
-Ddistrib \ | ||
-Dmaven.javadoc.skip=false \ | ||
-Dskip.signing.artifacts=false \ | ||
-Dgpg.passphrase=${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }} \ | ||
clean deploy |
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.