Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Commit

Permalink
ci: move UML diagrams to a dedicated repository and update github act…
Browse files Browse the repository at this point in the history
…ions "checkout@v3" and "setup-java@v3"
  • Loading branch information
andrei-cristea committed Oct 28, 2022
1 parent a3b8f60 commit 03236e3
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 704 deletions.
11 changes: 2 additions & 9 deletions .github/scripts/prepare_javadoc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,22 +30,15 @@ rm -rf $version-rc*
echo "Create target directory $version..."
mkdir $version

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

echo "Update versions list..."
echo "| Version | Documents |" > list_versions.md
echo "|:---:|---|" >> list_versions.md
for directory in `ls -rd [0-9]*/ | cut -f1 -d'/'`
do
diagrams=""
for diagram in `ls $directory/api_*.svg | cut -f2 -d'/'`
do
name=`echo "$diagram" | tr _ " " | cut -f1 -d'.' | sed -r 's/^api/API/g'`
diagrams="$diagrams<br>[$name]($directory/$diagram)"
done
echo "| $directory | [API documentation]($directory)$diagrams |" >> list_versions.md
echo "| $directory | [API documentation]($directory) |" >> list_versions.md
done

echo "Computed all versions:"
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/java-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out repository code from ${{ github.repository }}/${{ github.ref }}
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v2
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'adopt'
Expand All @@ -25,6 +25,9 @@ jobs:
cat <(echo -e "${{ secrets.OSSRH_GPG_SECRET_KEY }}") | gpg --batch --import
gpg --pinentry-mode loopback --passphrase "${{ secrets.OSSRH_GPG_SECRET_PASSWORD }}" --export-secret-key 568FD16F857171A0EC6D2C40742C84722FD2B235 > ~/.gradle/maven-central.gpg
gpg --list-secret-keys --keyid-format LONG
- name: Update permissions
working-directory: .
run: chmod +x ./gradlew ./.github/scripts/*.sh
- name: Check version
working-directory: .
run: ./.github/scripts/check_version.sh
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/java-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out repository code from ${{ github.repository }}/${{ github.ref }}
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v2
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'adopt'
Expand All @@ -25,6 +25,9 @@ jobs:
cat <(echo -e "${{ secrets.OSSRH_GPG_SECRET_KEY }}") | gpg --batch --import
gpg --pinentry-mode loopback --passphrase "${{ secrets.OSSRH_GPG_SECRET_PASSWORD }}" --export-secret-key 568FD16F857171A0EC6D2C40742C84722FD2B235 > ~/.gradle/maven-central.gpg
gpg --list-secret-keys --keyid-format LONG
- name: Update permissions
working-directory: .
run: chmod +x ./gradlew ./.github/scripts/*.sh
- name: Check version
working-directory: .
run: ./.github/scripts/check_version.sh $(echo "${{ github.ref }}" | sed -e "s,^refs/tags/,,")
Expand Down
11 changes: 7 additions & 4 deletions .github/workflows/java-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out repository code from ${{ github.repository }}/${{ github.ref }}
uses: actions/checkout@v2
- name: Set up JDK 8
uses: actions/setup-java@v2
uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '8'
java-version: '11'
distribution: 'adopt'
- name: Update permissions
working-directory: .
run: chmod +x ./gradlew ./.github/scripts/*.sh
- name: Check version
working-directory: .
run: ./.github/scripts/check_version.sh
Expand Down
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]
### Added
- "CHANGELOG.md" file (issue [#8]).
- `CHANGELOG.md` file (issue [#8]).
- CI: Forbid the publication of a version already released (issue [#6]).
### Changed
- UML diagrams moved to a dedicated repository (see `README.md` file).

## [1.0.0] - 2021-10-06
This is the initial release.
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

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

API documentation & class diagram is available online: [calypsonet.github.io/calypsonet-terminal-card-java-api](https://calypsonet.github.io/calypsonet-terminal-card-java-api)
API documentation is available online: [calypsonet.github.io/calypsonet-terminal-card-java-api](https://calypsonet.github.io/calypsonet-terminal-card-java-api)

UML diagrams are available online: [github.com/calypsonet/calypsonet-terminal-card-uml-api](https://github.com/calypsonet/calypsonet-terminal-card-uml-api)

More information can be found on [calypsonet.org](http://calypsonet.org).
217 changes: 0 additions & 217 deletions src/main/uml/api_class_diagram.puml

This file was deleted.

Loading

0 comments on commit 03236e3

Please sign in to comment.