Skip to content

Commit c10586f

Browse files
author
a.pirogov
committed
fixing demo site deployment
1 parent 9c5941f commit c10586f

3 files changed

Lines changed: 9 additions & 9 deletions

File tree

.github/workflows/deploy_demo.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,11 @@ jobs:
6262
- name: Install poetry
6363
run: pipx install poetry
6464

65-
- name: Install cookiecutter
66-
run: pip install cookiecutter==2.1.1
65+
- name: Install fair-python-cookiecutter (from local copy)
66+
run: pip install "./$FAIR_TEMPLATE_DIR"
6767

6868
- name: Instantiate demo repository
69-
run: cookiecutter $FAIR_TEMPLATE_DIR --no-input --config-file=$FAIR_TEMPLATE_CONFIG
69+
run: fair-python-cookiecutter --no-input --config-file=$FAIR_TEMPLATE_CONFIG --repo-url=https://github.com/Materials-Data-Science-and-Informatics/fair-python-cookiecutter-demo
7070

7171
# ----
7272

src/fair_python_cookiecutter/cli.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,10 @@ def main(
9696
# confirm / complete values
9797
prompt_config(ccconf)
9898

99-
if not dry_run and Confirm.ask(SAVE_QUESTION, default=False):
100-
# update config
101-
ccconf.save()
102-
print(f"\n[i]Your settings were saved in {ccconf.config_path()} ![/i]")
99+
if not dry_run and Confirm.ask(SAVE_QUESTION, default=False):
100+
# update config
101+
ccconf.save()
102+
print(f"\n[i]Your settings were saved in {ccconf.config_path()} ![/i]")
103103

104104
# check values after all the tweaking
105105
ccconf.fair_python_cookiecutter.check()

tests/demo.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ fair_python_cookiecutter:
1010
project_license: "Unlicense"
1111
project_version: "0.1.2"
1212
project_description: TODO - add description
13-
project_keywords: test keywords
13+
project_keywords: TODO add keywords
1414

1515
init_cli: true
16-
init_api: true
16+
init_api: true

0 commit comments

Comments
 (0)