-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
295 changed files
with
4,916 additions
and
5,568 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
# This workflow will build a Java project with Maven and publish artifact to Maven Central (https://search.maven.org) | ||
# | ||
# After deploy to https://s01.oss.sonatype.org finished, manual steps is required : | ||
# - Go to: https://s01.oss.sonatype.org/#stagingRepositories | ||
# - Check upload and if all is right, "Close" corresponding Staging Repository | ||
# - "Release" corresponding Staging Repository | ||
# - Wait some hours and then check availability of release on Maven central: https://search.maven.org/search?q=g:io.ecocode | ||
# | ||
# Additional information: | ||
# - https://docs.github.com/en/actions/publishing-packages/publishing-java-packages-with-maven#publishing-packages-to-the-maven-central-repository | ||
# - https://blogs.itemis.com/en/github-actions-releasing-artifacts-into-maven-central | ||
|
||
name: Publish package to the Maven Central Repository | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
publish: | ||
name: Deploy to Maven central | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
# Checks out a copy of project's repository. | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
# Sets up the Java JDK, and also configures the Maven `settings.xml` file to add authentication for the | ||
# `ossrh` repository using the `OSSRH_USERNAME` and `OSSRH_TOKEN` environment variables. | ||
- name: Set up Maven Central Repository | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '11' | ||
distribution: 'adopt' | ||
server-id: 'ossrh' # must match the serverId configured for the nexus-staging-maven-plugin in `pom.xml` | ||
server-username: OSSRH_USERNAME | ||
server-password: OSSRH_TOKEN | ||
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} # Substituted with the value stored in the referenced secret | ||
gpg-passphrase: MAVEN_GPG_PASSPHRASE # Env var that holds the key's passphrase | ||
|
||
- name: Cache Maven packages | ||
uses: actions/cache@v1 | ||
with: | ||
path: ~/.m2 | ||
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} | ||
restore-keys: ${{ runner.os }}-m2 | ||
|
||
# Runs the Maven command to publish to the `ossrh` repository. | ||
# The `OSSRH_USERNAME` environment variable will be set with the contents of your `OSSRH_USERNAME` secret, | ||
# and the `OSSRH_TOKEN` environment variable will be set with the contents of your `OSSRH_TOKEN` secret. | ||
- name: Publish package | ||
run: mvn --batch-mode deploy -Pmaven-central-publishing | ||
env: | ||
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }} | ||
OSSRH_TOKEN: ${{ secrets.OSSRH_TOKEN }} | ||
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }} |
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,21 @@ | ||
name: "Label stale PRs" | ||
on: | ||
schedule: | ||
- cron: "30 1 * * *" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
stale: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
days-before-issue-stale: -1 # We don't want to address issues | ||
days-before-pr-stale: 30 | ||
days-before-issue-close: -1 # We don't want to close issues in this action | ||
days-before-pr-close: -1 # We don't want to close PR in this action | ||
stale-pr-label: stale | ||
stale-pr-message: | | ||
This PR has been automatically marked as stale because it has no activity for 30 days. | ||
Please add a comment if you want to keep the issue open. Thank you for your contributions! |
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
Oops, something went wrong.