Skip to content

Commit a3d47fd

Browse files
committed
v0.1.8: CNAME support, default publish_dir
1 parent fd457ab commit a3d47fd

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

action.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,20 @@ inputs:
2727
Base directory to lookup custom jinja2 templates in (default: ".").
2828
default: "."
2929
required: false
30-
30+
publish_dir:
31+
description: >
32+
Where should the webified results end up (default: "./webified/")
33+
default: "./webified/"
34+
required: false
3135
runs:
3236
using: "composite"
3337
steps:
3438
- uses: actions/setup-python@v2
3539
with:
36-
python-version: 3.8
40+
python-version: 3.9
3741
- run: pip install webifier
3842
shell: bash
39-
- run: webify --repo_full_name "${{ inputs.repo }}" --baseurl "${{ inputs.baseurl }}" --index ${{ inputs.index }} --output="." --templates-dir="${{ inputs.templates_dir }}"
43+
- run: webify --repo_full_name "${{ inputs.repo }}" --baseurl "${{ inputs.baseurl }}" --index ${{ inputs.index }} --output="${{ inputs.publish_dir }}" --templates-dir="${{ inputs.templates_dir }}"
4044
shell: bash
4145

4246

webifier/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = 'v0.1.7'
1+
__version__ = 'v0.1.8'

webifier/main.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ def main():
3333
print(f'webifier: {__version__}, baseurl: {args.base_url}, repo_full_name: {args.repo_full_name}')
3434

3535
mix_folders(root_src_dir='.', root_target_dir=args.output,
36-
file_map=['favicon.ico', '_includes', '_layouts', 'assets', 'search.json']) # todo: improve file map
36+
file_map=['favicon.ico', 'CNAME', '_includes', '_layouts', 'assets',
37+
'search.json']) # todo: improve file map
3738
mix_folders(root_src_dir=os.path.join(os.path.join(*os.path.split(__file__)[:-1], 'jekyll')),
3839
root_target_dir=args.output)
3940
builder = Builder(base_url=args.base_url, repo_full_name=args.repo_full_name, output_dir=args.output,

0 commit comments

Comments
 (0)