devops: fix javadocs in main.yml actions file
@@ -104,26 +104,26 @@ jobs:
## run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
# - name: Build and publish Docker images to DockerHub
# run: ./build/cloud/docker/docker-build.sh push ${{ github.ref }}
-# javadocs:
-# name: Generate and push Java Docs
-# runs-on: ubuntu-18.04
-# needs: build
-# steps:
-# - uses: actions/checkout@v1
-# - name: Set up JDK 1.8
-# uses: actions/setup-java@v1
-# with:
-# java-version: 1.8
-## - name: Get CellBase version
-## id: get_version
-## run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
-# - name: Generate Javadocs
-# run: mvn javadoc:aggregate
-# - name: Deploy Javadocs
-# uses: JamesIves/github-pages-deploy-action@releases/v3
-# with:
-# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
-# BASE_BRANCH: next # The branch the action should deploy from.
-# BRANCH: gh-pages # The branch the action should deploy to.
-# FOLDER: target/site # The folder the action should deploy.
-# TARGET_FOLDER: apidocs/ ${{ github.ref }}
\ No newline at end of file
+ javadocs:
+ name: Generate and push Java Docs
+ runs-on: ubuntu-18.04
+ needs: build
+ steps:
+ - uses: actions/checkout@v1
+ - name: Set up JDK 1.8
+ uses: actions/setup-java@v1
+ with:
+ java-version: 1.8
+ - name: Get CellBase version
+ id: get_version
+ run: echo ::set-output name=VERSION::5.0.0-SNAPSHOT
+ - name: Generate Javadocs
+ run: mvn javadoc:aggregate
+ - name: Deploy Javadocs
+ uses: JamesIves/github-pages-deploy-action@releases/v3
+ with:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ BASE_BRANCH: next # The branch the action should deploy from.
+ BRANCH: gh-pages # The branch the action should deploy to.
+ FOLDER: target/site/apidocs # The folder the action should deploy.
+ TARGET_FOLDER: apidocs/${{ steps.get_version.outputs.VERSION }}
\ No newline at end of file
