-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #105 from Bernardo-MG/release
Release
- Loading branch information
Showing
10 changed files
with
140 additions
and
84 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -24,13 +24,12 @@ jobs: | |
- name: Check-out | ||
uses: actions/checkout@v2 | ||
- name: Set up JDK | ||
uses: actions/setup-java@v1 | ||
uses: actions/setup-java@v2.1.0 | ||
with: | ||
java-version: 11 | ||
distribution: 'adopt' | ||
- name: Set up Maven settings | ||
uses: bernardo-mg/[email protected] | ||
with: | ||
version-type: ${{ steps.extract_branch.outputs.branch }} | ||
env: | ||
DEPLOY_DOCS_USER: ${{ secrets.DEPLOY_DOCS_USER }} | ||
DEPLOY_DOCS_PASSWORD: ${{ secrets.DEPLOY_DOCS_PASSWORD }} | ||
|
@@ -40,7 +39,7 @@ jobs: | |
DEPLOY_DOCS_DEVELOP_SITE: ${{ secrets.DEPLOY_DOCS_DEVELOP_SITE }} | ||
- name: Deploy development docs | ||
if: steps.extract_branch.outputs.branch == 'develop' | ||
run: mvn site site:deploy -B -P deployment,deployment-development --settings settings.xml | ||
run: mvn verify site site:deploy -B -P deployment,deployment-development --settings settings.xml | ||
- name: Deploy release docs | ||
if: steps.extract_branch.outputs.branch == 'master' | ||
run: mvn site site:deploy -B -P deployment,deployment-release --settings settings.xml | ||
run: mvn verify site site:deploy -B -P deployment,deployment-release --settings settings.xml |
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,27 @@ | ||
name: Github Repository Deployment | ||
|
||
on: | ||
release: | ||
types: [created] | ||
|
||
jobs: | ||
deploy: | ||
|
||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
packages: write | ||
|
||
steps: | ||
- name: Check-out | ||
uses: actions/checkout@v2 | ||
- name: Set up JDK | ||
uses: actions/[email protected] | ||
with: | ||
java-version: 11 | ||
distribution: 'adopt' | ||
server-id: github | ||
- name: Deploy | ||
run: mvn deploy -B -P deployment,deployment-release,deployment-github | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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,31 @@ | ||
name: OSSRH Repository Deployment | ||
|
||
on: | ||
release: | ||
types: [created] | ||
|
||
jobs: | ||
deploy: | ||
|
||
environment: deployment_ossrh | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check-out | ||
uses: actions/checkout@v2 | ||
- name: Set up JDK | ||
uses: actions/[email protected] | ||
with: | ||
java-version: 11 | ||
distribution: 'adopt' | ||
server-id: ossrh | ||
server-username: MAVEN_USERNAME | ||
server-password: MAVEN_PASSWORD | ||
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} | ||
gpg-passphrase: GPG_PASSPHRASE | ||
- name: Deploy | ||
run: mvn deploy -B -P deployment,deployment-release,deployment-ossrh | ||
env: | ||
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }} | ||
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }} | ||
GPG_PASSPHRASE: ${{ secrets.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
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
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,29 +1,10 @@ | ||
#set( $symbol_pound = '#' ) | ||
${symbol_pound} Setting up the dependencies | ||
|
||
The project files are hosted on a [Bintray repository][bintray-repo], and have been replicated on JCenter and OSS Sonatype, which also replicates into the [Maven Central Repository][maven-repo]. | ||
|
||
This means that most Maven setups will be able to acquire the dependency without any additional configuration. Still, if the repository should be registered it is recommended using the Bintray one. | ||
The project files are hosted in the the [Maven Central Repository][maven-repo], and the [Github Packages Repository][github-repo]. This means that most Maven setups will be able to acquire the dependency without any additional configuration. | ||
|
||
For any additional information about how to set up the dependency check the [dependency information section](./dependency-info.html). | ||
|
||
${symbol_pound}${symbol_pound} Snapshots | ||
|
||
Snapshot artifacts are stored on OSS Sonatype. They can be accessed by adding the following lines to the configuration files: | ||
|
||
${symbol_pound}${symbol_pound}${symbol_pound} Maven | ||
|
||
```xml | ||
<repositories> | ||
... | ||
<repository> | ||
<id>oss-sonatype-snapshots</id> | ||
<name>OSS Sonatype snapshots repository</name> | ||
<url>https://oss.sonatype.org/content/groups/staging</url> | ||
</repository> | ||
... | ||
</repositories> | ||
``` | ||
|
||
[bintray-repo]: ${bintrayURL} | ||
[maven-repo]: ${mavenURL} | ||
[maven-repo]: ${mavenURL} | ||
[github-repo]: ${githubArtifactURL} |
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