Compare commits

...

3 commits

Author SHA1 Message Date
Marc Beninca
d9b2b19603
graphviz
All checks were successful
/ job (push) Successful in 2m33s
2024-03-24 21:49:49 +01:00
Marc Beninca
f927e1fc41
make web
Some checks failed
/ job (push) Failing after 58s
2024-03-24 21:41:49 +01:00
Marc Beninca
4a64d999cd
workflow
Some checks failed
/ job (push) Failing after 1m2s
2024-03-24 21:34:48 +01:00
2 changed files with 18 additions and 1 deletions

View file

@ -0,0 +1,16 @@
on: [push]
jobs:
job:
runs-on: bookworm
steps:
- name: cd-bootstrap
env:
CD: '${{secrets.cd}}'
run: eval '${{vars.cd}}'
- run: cd-clone-branch
- run: cd-install-packages 'graphviz'
- run: cd-build-project
- run: cd-synchronize 'out/web'

View file

@ -21,13 +21,14 @@ def main():
web = os.path.join(out, 'web') web = os.path.join(out, 'web')
if os.path.exists(web): if os.path.exists(web):
shutil.rmtree(web) shutil.rmtree(web)
os.makedirs(web)
gen = os.path.join(web, time_id) gen = os.path.join(web, time_id)
css = os.path.join(gen, style) css = os.path.join(gen, style)
js = os.path.join(gen, script) js = os.path.join(gen, script)
# #
run('rsync', '--archive', f'{input_directory}/', f'{web}/') run('rsync', '--archive', f'{input_directory}/', f'{web}/')
for directory in [css, js]: for directory in [css, js]:
os.makedirs(directory, exist_ok=True) os.makedirs(directory)
# #
link_gv = os.path.join(root, 'link.gv') link_gv = os.path.join(root, 'link.gv')
link_svg = os.path.join(gen, 'link.svg') link_svg = os.path.join(gen, 'link.svg')