-
Notifications
You must be signed in to change notification settings - Fork 3
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 #202 from xenit-eu/master
Release 5.0.1
- Loading branch information
Showing
8 changed files
with
4,327 additions
and
31 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 |
---|---|---|
|
@@ -5,12 +5,13 @@ on: | |
env: | ||
ALFRESCO_NEXUS_USERNAME: ${{ secrets.ALFRESCO_NEXUS_USERNAME }} | ||
ALFRESCO_NEXUS_PASSWORD: ${{ secrets.ALFRESCO_NEXUS_PASSWORD }} | ||
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.MAVEN_CENTRAL_GPG_KEY }} | ||
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.MAVEN_CENTRAL_GPG_PASSWORD }} | ||
ORG_GRADLE_PROJECT_sonatype_username: ${{ secrets.SONATYPE_S01_USERNAME }} | ||
ORG_GRADLE_PROJECT_sonatype_password: ${{ secrets.SONATYPE_S01_PASSWORD }} | ||
BRANCH_NAME: ${{ github.ref_name }} | ||
jobs: | ||
BuildAndPublish: | ||
strategy: | ||
matrix: | ||
alfresco_version: [ 70, 71, 72, 73, 74 ] | ||
fail-fast: false | ||
apix-interface: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out | ||
|
@@ -26,16 +27,40 @@ jobs: | |
registry: private.docker.xenit.eu | ||
username: ${{ secrets.CLOUDSMITH_USER }} | ||
password: ${{ secrets.CLOUDSMITH_APIKEY }} | ||
|
||
- name: Build interface # Execute before integration testing to catch errors early | ||
uses: gradle/[email protected] | ||
with: | ||
arguments: :apix-interface:build :apix-interface:javadoc | ||
|
||
- name: Unit test REST API | ||
uses: gradle/[email protected] | ||
with: | ||
arguments: --info :apix-rest-v1:test | ||
- name: Publish | ||
if: ${{ startsWith(github.ref, 'refs/heads/master') || startsWith(github.ref, 'refs/heads/release') }}" | ||
uses: gradle/[email protected] | ||
with: | ||
arguments: --info -PsigningKeyId=DF8285F0 :apix-interface:publish | ||
|
||
apix-impl: | ||
strategy: | ||
matrix: | ||
alfresco_version: [ 70, 71, 72, 73, 74 ] | ||
fail-fast: false | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out | ||
uses: actions/checkout@v3 | ||
- name: Set up JDK | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: 11 | ||
distribution: temurin | ||
- name: Login to Docker | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: private.docker.xenit.eu | ||
username: ${{ secrets.CLOUDSMITH_USER }} | ||
password: ${{ secrets.CLOUDSMITH_APIKEY }} | ||
- name: Build and test | ||
uses: gradle/[email protected] | ||
with: | ||
|
@@ -51,18 +76,10 @@ jobs: | |
report_paths: '**/build/test-results/**/TEST-*.xml' | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
detailed_summary: true | ||
|
||
- name: Publish | ||
if: ${{ startsWith(github.ref, 'refs/heads/master') || startsWith(github.ref, 'refs/heads/release') }}" | ||
uses: gradle/[email protected] | ||
env: | ||
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.MAVEN_CENTRAL_GPG_KEY }} | ||
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.MAVEN_CENTRAL_GPG_PASSWORD }} | ||
ORG_GRADLE_PROJECT_sonatype_username: ${{ secrets.SONATYPE_S01_USERNAME }} | ||
ORG_GRADLE_PROJECT_sonatype_password: ${{ secrets.SONATYPE_S01_PASSWORD }} | ||
BRANCH_NAME: ${{ github.ref_name }} | ||
with: | ||
arguments: >- | ||
--info -PsigningKeyId=DF8285F0 | ||
:apix-interface:publish | ||
:alfresco:${{ matrix.alfresco_version }}:publish |
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 |
---|---|---|
|
@@ -10,4 +10,22 @@ This is done by manually executing: | |
``` | ||
|
||
This will generate a ZIP containing the documentation website, which still needs to be | ||
uploaded and unzipped on our host. | ||
uploaded and unzipped on our host. | ||
|
||
## Publishing | ||
|
||
To upload to docs.xenit.eu, you first need to have key-based SSH access to the `xeniteu` account. | ||
Example to upload the website tarball: | ||
```bash | ||
scp -i ~/.ssh/a2hosting-key -P 7822 build/website-alfred-api_2024-02-21.tar.gz [email protected]:~/docs.xenit.eu/ | ||
``` | ||
|
||
After that login via SSH to unpack the website. The folder hosting the Alfred API docs is `~/docs.xenit.eu/alfred-api`. | ||
Example to unpack: | ||
```bash | ||
ssh -i ~/.ssh/a2hosting-key -p 7822 [email protected] | ||
$ cd docs.xenit.eu | ||
$ mv alfred-api alfred-api_backup2024-02-21 | ||
$ tar xvzf website-alfred-api_2024-02-21.tar.gz | ||
``` | ||
|
Large diffs are not rendered by default.
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