Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,17 @@ jobs:
mvn versions:set -DnewVersion=$UPDATE_VERSION
mvn versions:update-child-modules
mvn clean deploy -s ci_settings.xml

mvn javadoc:javadoc

# Verify if Javadoc files are generated
if [ ! -d "sidebar-base/target/reports/apidocs" ]; then
echo "Javadoc directory not found!"
exit 1
fi

sudo apt install -y -qq lftp
lftp -c "set ftp:ssl-allow no; open -u $J_DOCS_USER,$J_DOCS_PASS javadocs.andrei1058.dev; mirror -Rev sidebar-base/target/site/apidocs ./SidebarLib --ignore-time --parallel=10 --exclude-glob .git* --exclude .git/"
lftp -c "set ftp:ssl-allow no; open -u $J_DOCS_USER,$J_DOCS_PASS javadocs.andrei1058.dev; mirror -Rev sidebar-base/target/reports/apidocs ./SidebarLib --ignore-time --parallel=10 --exclude-glob .git* --exclude .git/"
curl -X PUT https://api.andrei1058.dev/v1/resources/4/versioning/commit -H "Accept: application/json" -H "Authorization: Bearer ${{ secrets.ANDEV_API_TOKEN }}" -H "Content-Type: application/json" --data '{"confirmation": true}' >> version.json
echo "UPDATE_VERSION=$UPDATE_VERSION" >> $GITHUB_ENV
- name: Create Tag
Expand Down