Skip to content
Open
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
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,6 @@ jobs:
- `output_dir`: defaults to `public`, where the Zola site is built
- `build_flags`: additional flags on top of basic `zola build`
- `check_links`: defaults to `false`, whether to run `zola check` before `zola build`
- `check_flags`: additional flags on top of basic `zola check`
- `check_flags`: additional flags on top of basic `zola check`
- `include_hidden_files`: defaults to `false`, whether to include hidden files and directories
(those starting with a dot) in the artifact. Excludes .git and .github regardless.
8 changes: 7 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ inputs:
required: false
default: ""

include_hidden_files:
description: "Include hidden files and directories (those starting with a dot) in the artifact. Excludes .git and .github regardless."
required: false
default: "false"

runs:
using: "composite"
steps:
Expand Down Expand Up @@ -64,6 +69,7 @@ runs:
"$image" build ${{ inputs.build_flags }}

- name: Upload GitHub Pages artifact
uses: actions/upload-pages-artifact@7b1f4a764d45c48632c6b24a0339c27f5614fb0b
uses: actions/upload-pages-artifact@98ef48e41587a300b82de4cf298aa98b57b2faae
with:
path: ${{ inputs.working_directory }}/${{ inputs.output_dir }}
include-hidden-files: ${{ inputs.include_hidden_files }}