Skip to content

Commit

Permalink
feature/IVYPORTAL-18151-Create-Github-Action-for-Building-Documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
ntloc-axonivy committed Dec 25, 2024
1 parent 1281423 commit e7d6562
Showing 1 changed file with 8 additions and 65 deletions.
73 changes: 8 additions & 65 deletions .github/workflows/portal-documentation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ jobs:
with:
maven-version: 3.9.8

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ vars.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
# - name: Login to Docker Hub
# uses: docker/login-action@v3
# with:
# username: ${{ vars.DOCKERHUB_USERNAME }}
# password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Get current version
id: get_version
Expand All @@ -59,11 +59,6 @@ jobs:
shell: bash
run: chmod +x Documentation/portal-guide/substitute.sh && Documentation/portal-guide/substitute.sh ${{ inputs.ivyVersion }}

# - name: Build HTML documentation
# uses: docker://axonivy/build-container:read-the-docs-2
# with:
# args: make -C /doc-build html BASEDIR=${{ github.workspace }}/Documentation/portal-guide VERSION=${{ steps.get_version.outputs.version }}

- name: Build Documentation HTML
run: |
docker run -u root:root --rm -v ${{ github.workspace }}:/workspace -w /workspace/Documentation/portal-guide \
Expand All @@ -76,59 +71,7 @@ jobs:
path: |
Documentation/*/build/html/**/*
Documentation/*/target/*.zip
# build-document:
# runs-on: portal-01
# needs: prepare-document
# steps:
# - name: Build HTML documentation with Read the Docs
# container:
# image: axonivy/build-container:read-the-docs-2
# env:
# BASEDIR: ${{ github.workspace }}/Documentation/portal-guide
# VERSION: ${{ needs.prepare-document.outputs.documentVersion }}
# run: make -C /doc-build html

# uses: docker://axonivy/build-container:read-the-docs-2
# with:
# entrypoint: "make"
# env:
# BASEDIR: ${{ github.workspace }}/Documentation/portal-guide
# VERSION: ${{ needs.prepare-document.outputs.documentVersion }}
# args: ["-C", "/doc-build", "html"]
# - name: Cleanup
# shell: bash
# run: |
# rm -r --force ${{ github.workspace }}\*
# unzip-screenshot:
# runs-on: portal-01
# needs: get-current-version
# steps:
# - name: Unzip portal screenshots
# run: |
# unzip /mnt/portal02/document-screenshots/portal-document-screenshots-selenide-${{ needs.get-current-version.outputs.documentVersion }}.zip \
# -d Documentation/portal-guide/source/screenshots

# test-another-job:
# runs-on: portal-01
# needs: get-current-version
# container:
# image: axonivy/build-container:read-the-docs-2
# steps:
# - name: test-1
# run: echo ${{ needs.get-current-version.outputs.documentVersion }}



# - run: echo "πŸŽ‰ The job was manually triggered by a ${{ inputs.ivyVersion }} event."
# - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!"
# - run: echo "πŸ”Ž The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
# - name: Check out repository code
# uses: actions/checkout@v4
# - run: echo "πŸ’‘ The ${{ github.repository }} repository has been cloned to the runner."
# - run: echo "πŸ–₯️ The workflow is now ready to test your code on the runner."
# - name: List files in the repository
# run: |
# ls ${{ github.workspace }}
# - run: echo "🍏 This job's status is ${{ job.status }}."
- name: Cleanup
shell: bash
run: rm -r --force ${{ github.workspace }}\*

0 comments on commit e7d6562

Please sign in to comment.