Skip to content
This repository was archived by the owner on Jun 10, 2025. It is now read-only.

Commit 48df81a

Browse files
ci: move UML diagrams to a dedicated repository and update github actions "checkout@v3" and "setup-java@v3"
1 parent f919121 commit 48df81a

File tree

8 files changed

+24
-1606
lines changed

8 files changed

+24
-1606
lines changed

.github/scripts/prepare_javadoc.sh

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,22 +30,15 @@ rm -rf $version-rc*
3030
echo "Create target directory $version..."
3131
mkdir $version
3232

33-
echo "Copy javadoc and uml files..."
33+
echo "Copy javadoc files..."
3434
cp -rf ../build/docs/javadoc/* $version/
35-
cp -rf ../src/main/uml/api_*.svg $version/
3635

3736
echo "Update versions list..."
3837
echo "| Version | Documents |" > list_versions.md
3938
echo "|:---:|---|" >> list_versions.md
4039
for directory in `ls -rd [0-9]*/ | cut -f1 -d'/'`
4140
do
42-
diagrams=""
43-
for diagram in `ls $directory/api_*.svg | cut -f2 -d'/'`
44-
do
45-
name=`echo "$diagram" | tr _ " " | cut -f1 -d'.' | sed -r 's/^api/API/g'`
46-
diagrams="$diagrams<br>[$name]($directory/$diagram)"
47-
done
48-
echo "| $directory | [API documentation]($directory)$diagrams |" >> list_versions.md
41+
echo "| $directory | [API documentation]($directory) |" >> list_versions.md
4942
done
5043

5144
echo "Computed all versions:"

.github/workflows/java-publish.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Check out repository code from ${{ github.repository }}/${{ github.ref }}
13-
uses: actions/checkout@v2
13+
uses: actions/checkout@v3
1414
- name: Set up JDK 11
15-
uses: actions/setup-java@v2
15+
uses: actions/setup-java@v3
1616
with:
1717
java-version: '11'
1818
distribution: 'adopt'
@@ -25,6 +25,9 @@ jobs:
2525
cat <(echo -e "${{ secrets.OSSRH_GPG_SECRET_KEY }}") | gpg --batch --import
2626
gpg --pinentry-mode loopback --passphrase "${{ secrets.OSSRH_GPG_SECRET_PASSWORD }}" --export-secret-key 568FD16F857171A0EC6D2C40742C84722FD2B235 > ~/.gradle/maven-central.gpg
2727
gpg --list-secret-keys --keyid-format LONG
28+
- name: Update permissions
29+
working-directory: .
30+
run: chmod +x ./gradlew ./.github/scripts/*.sh
2831
- name: Check version
2932
working-directory: .
3033
run: ./.github/scripts/check_version.sh

.github/workflows/java-release.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Check out repository code from ${{ github.repository }}/${{ github.ref }}
13-
uses: actions/checkout@v2
13+
uses: actions/checkout@v3
1414
- name: Set up JDK 11
15-
uses: actions/setup-java@v2
15+
uses: actions/setup-java@v3
1616
with:
1717
java-version: '11'
1818
distribution: 'adopt'
@@ -25,6 +25,9 @@ jobs:
2525
cat <(echo -e "${{ secrets.OSSRH_GPG_SECRET_KEY }}") | gpg --batch --import
2626
gpg --pinentry-mode loopback --passphrase "${{ secrets.OSSRH_GPG_SECRET_PASSWORD }}" --export-secret-key 568FD16F857171A0EC6D2C40742C84722FD2B235 > ~/.gradle/maven-central.gpg
2727
gpg --list-secret-keys --keyid-format LONG
28+
- name: Update permissions
29+
working-directory: .
30+
run: chmod +x ./gradlew ./.github/scripts/*.sh
2831
- name: Check version
2932
working-directory: .
3033
run: ./.github/scripts/check_version.sh $(echo "${{ github.ref }}" | sed -e "s,^refs/tags/,,")

.github/workflows/java-test.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,15 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Check out repository code from ${{ github.repository }}/${{ github.ref }}
13-
uses: actions/checkout@v2
14-
- name: Set up JDK 8
15-
uses: actions/setup-java@v2
13+
uses: actions/checkout@v3
14+
- name: Set up JDK 11
15+
uses: actions/setup-java@v3
1616
with:
17-
java-version: '8'
17+
java-version: '11'
1818
distribution: 'adopt'
19+
- name: Update permissions
20+
working-directory: .
21+
run: chmod +x ./gradlew ./.github/scripts/*.sh
1922
- name: Check version
2023
working-directory: .
2124
run: ./.github/scripts/check_version.sh

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

77
## [Unreleased]
8+
### Changed
9+
- UML diagrams moved to a dedicated repository (see `README.md` file).
810

911
## [1.4.0] - 2022-10-26
1012
### Added

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
This is the repository for the **Calypso Networks Association**'s reference **Terminal Calypso API** for Java.
44

5-
API documentation & class diagram is available online: [calypsonet.github.io/calypsonet-terminal-calypso-java-api](https://calypsonet.github.io/calypsonet-terminal-calypso-java-api)
5+
API documentation is available online: [calypsonet.github.io/calypsonet-terminal-calypso-java-api](https://calypsonet.github.io/calypsonet-terminal-calypso-java-api)
6+
7+
UML diagrams are available online: [github.com/calypsonet/calypsonet-terminal-calypso-uml-api](https://github.com/calypsonet/calypsonet-terminal-calypso-uml-api)
68

79
More information can be found on [calypsonet.org](http://calypsonet.org).

0 commit comments

Comments
 (0)