Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add target_folder option #21

Merged
merged 2 commits into from
Apr 17, 2023
Merged
Show file tree
Hide file tree
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
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
- `branch` (optional): Branch to deploy to. Defaults to `gh-pages`.
- `folder` (optional): Folder where the docs are built. Defaults to `docs/html`.
- `config_file` (optional): Path of the Doxygen configuration file. Defaults to `Doxyfile`.
- `target_folder` (optional): Directory within the deployment branch to push to. Defaults to empty (root).

## Advanced Usage

Expand Down Expand Up @@ -65,10 +66,10 @@ The [actions/checkout](https://github.com/actions/checkout) step is used to chec

### 2. Install Doxygen

Doxygen is installed by running the following command:
Doxygen and Graphviz are installed by running the following command:

```bash
sudo apt-get install doxygen -y
sudo apt-get install doxygen graphviz -y
```

### 3. Generate Doxygen Documentation
Expand Down Expand Up @@ -99,6 +100,8 @@ The `folder` option determines which folder to deploy. By default, it is `docs/h

The `branch` option determines which branch to deploy to. By default, it is `gh-pages`.

The `target_folder` option determines which directory in the deployment branch to push to. By default, the root of the branch is overwritten.

## License

This work is under an [MIT license](LICENSE)
Expand Down
4 changes: 4 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ inputs:
description: 'Path of the Doxygen configuration file'
required: true
default: "Doxyfile"
target_folder:
description: 'Directory on the deployment branch for pushing the build files'
required: false

runs:
using: "composite"
Expand Down Expand Up @@ -48,3 +51,4 @@ runs:
token: ${{ inputs.github_token }}
branch: ${{ inputs.branch }}
folder: ${{ inputs.folder }}
target-folder: ${{ inputs.target_folder }}