~lobisquit/personal-website

47951b9e00fd10b7dcc09d2c914db9fa42e8b390 — Enrico Lovisotto 3 years ago 551a090
Added folder creation, made publish executable
2 files changed, 2 insertions(+), 1 deletions(-)

M .gitlab-ci.yml
M publish.sh -rw-r--r-- => -rwxr-xr-x
M .gitlab-ci.yml => .gitlab-ci.yml +1 -1
@@ 6,7 6,7 @@ variables:

pages:
  script:
    - bash publish.sh
    - ./publish.sh
  artifacts:
    paths:
      - public

M publish.sh => publish.sh +1 -0
@@ 1,6 1,7 @@
#!/bin/bash

# clean and re-populate the public/ folder
mkdir -p "$PUBLIC"
find "$PUBLIC" -type f \( -name "*.html" -or -name "*.gz" -or -name "*.svg"  -or -name "*.css" \) -not -path "$PUBLIC/.git/*" -exec rm "{}" \;
cp -r "$WEBSITE"/* "$PUBLIC/"