ExtraStatic: powerful and easy publishing

Skip to content
Snippets Groups Projects
Commit 5dd7069e authored by Chris Dawson's avatar Chris Dawson
Browse files

Merge branch 'notify_about_svekyll_sites_gitlab_ci' into 'main'

Update svekyll-sites-gitlab-ci.yml

See merge request svekyll/svekyll!53
parents b5d4f965 62e58a1f
No related branches found
No related tags found
No related merge requests found
......@@ -7,6 +7,9 @@ pages:
variables:
THEMES: "light dark cupcake bumblebee emerald corporate synthwave retro cyberpunk valentine halloween garden forest aqua lofi pastel fantasy wireframe black luxury dracula cmyk"
script:
- echo $CI_PROJECT_NAME
- echo $CI_PROJECT_NAMESPACE
- if [ ! "$CI_PROJECT_NAME" == "svekyll" ] && [ ! "$CI_PROJECT_NAMESPACE" == "svekyll" ]; then echo "You need to reconfigure your CI settings to use .gitlab-ci.yml (https://extrastatic.dev/svekyll/svekyll/issues/12" && exit -1; fi
- npm install
- mkdir themes
- >
......@@ -27,26 +30,3 @@ pages:
paths:
- public
tests:
only:
variables:
- $SVEKYLL_TESTS
script:
- npm install
- yarn test
preview:
except:
- main
only:
variables:
- $BRANCH_PREVIEW_KEY
script:
- yarn install
- yarn build
- cd build
- URL="https://uploads.x.extrastatic.io/upload/$CI_PROJECT_NAME/$CI_COMMIT_REF_NAME"
- echo $URL
- zip -r app.zip .
- 'curl -vvvv -X POST -F "file=@app.zip" -H "secret: $BRANCH_PREVIEW_KEY" $URL'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment