Skip to content

Commit

Permalink
feat: Add target_folder option (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
DenverCoder1 committed Apr 17, 2023
1 parent a1ff6f4 commit 96a03ba
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
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 }}

0 comments on commit 96a03ba

Please sign in to comment.