-
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.
Merge pull request #5 from Bernardo-MG/release
Release
- Loading branch information
Showing
10 changed files
with
154 additions
and
72 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,32 @@ | ||
name: Deployment | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
deploy: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Extract branch name | ||
shell: bash | ||
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})" | ||
id: extract_branch | ||
- name: Check-out | ||
uses: actions/checkout@v2 | ||
- name: Set up JDK | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 1.8 | ||
- name: Set up Maven settings | ||
uses: bernardo-mg/deployment-maven-settings-action@v1.1.2 | ||
with: | ||
version-type: ${{ steps.extract_branch.outputs.branch }} | ||
env: | ||
DEPLOY_USER: ${{ secrets.DEPLOY_USER }} | ||
DEPLOY_PASSWORD: ${{ secrets.DEPLOY_PASSWORD }} | ||
- name: Deploy | ||
run: mvn 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,46 @@ | ||
name: Doc deployment | ||
|
||
on: | ||
push: | ||
branches: | ||
- develop | ||
- master | ||
|
||
jobs: | ||
deploy_docs: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Create SSH key | ||
run: | | ||
mkdir -p ~/.ssh/ | ||
ssh-keyscan -H docs.bernardomg.com >> ~/.ssh/known_hosts | ||
shell: bash | ||
- name: Extract branch name | ||
shell: bash | ||
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})" | ||
id: extract_branch | ||
- name: Check-out | ||
uses: actions/checkout@v2 | ||
- name: Set up JDK | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 1.8 | ||
- name: Set up Maven settings | ||
uses: bernardo-mg/deployment-maven-settings-action@v1.1.2 | ||
with: | ||
version-type: ${{ steps.extract_branch.outputs.branch }} | ||
env: | ||
DEPLOY_DOCS_USER: ${{ secrets.DEPLOY_DOCS_USER }} | ||
DEPLOY_DOCS_PASSWORD: ${{ secrets.DEPLOY_DOCS_PASSWORD }} | ||
DEPLOY_DOCS_DEVELOP_USER: ${{ secrets.DEPLOY_DOCS_DEVELOP_USER }} | ||
DEPLOY_DOCS_DEVELOP_PASSWORD: ${{ secrets.DEPLOY_DOCS_DEVELOP_PASSWORD }} | ||
DEPLOY_DOCS_SITE: ${{ secrets.DEPLOY_DOCS_SITE }} | ||
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 | ||
- name: Deploy release docs | ||
if: steps.extract_branch.outputs.branch == 'master' | ||
run: mvn 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,21 @@ | ||
name: Testing and validation | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
test: | ||
|
||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
jdk: [ 8, 11, 14 ] | ||
|
||
steps: | ||
- name: Check-out | ||
uses: actions/checkout@v2 | ||
- name: Set up JDK ${{ matrix.jdk }} | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: ${{ matrix.jdk }} | ||
- name: Run all tests | ||
run: mvn clean verify |
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 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