Skip to content

Commit

Permalink
latest boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
benwoo1110 authored Nov 14, 2024
1 parent ecca904 commit 99a716c
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/dispatch.javadoc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
target_tag:
description: 'Version to generate javadoc'
required: true
replace_latest:
description: 'Should this release replace the latest folder'
type: boolean

jobs:
javadocs:
Expand All @@ -29,13 +32,17 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_VERSION: ${{ inputs.target_tag }}

- name: Copy javadoc to version and latest folder
- name: Copy javadoc to deploy folder
run: |
mkdir -p build/docs/javadoc-deploy/latest
mkdir -p build/docs/javadoc-deploy/${{ inputs.target_tag }}
cp -r build/docs/javadoc/* build/docs/javadoc-deploy/latest
cp -r build/docs/javadoc/* build/docs/javadoc-deploy/${{ inputs.target_tag }}
- name: Copy javadoc to latest folder
if: inputs.replace_latest
run: |
mkdir -p build/docs/javadoc-deploy/latest
cp -r build/docs/javadoc/* build/docs/javadoc-deploy/latest
- name: Deploy javadoc to gh pages
uses: JamesIves/github-pages-deploy-action@v4
with:
Expand Down

0 comments on commit 99a716c

Please sign in to comment.