From e471e2488108c132f4bdea71bf3cfa8c5edfaefa Mon Sep 17 00:00:00 2001 From: Christophe Chaudier <christophe@lydra.fr> Date: Wed, 16 Nov 2022 18:06:17 +0100 Subject: [PATCH] ci: deploy astro on Froggit Pages --- .gitignore | 1 + .gitlab-ci.yml | 0 astro.config.mjs | 7 ++++++- public/favicon.svg | 13 ------------- 4 files changed, 7 insertions(+), 14 deletions(-) create mode 100644 .gitlab-ci.yml delete mode 100644 public/favicon.svg diff --git a/.gitignore b/.gitignore index 7329a85..bbd4adb 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ # build output dist/ .output/ +public/ # dependencies node_modules/ diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..e69de29 diff --git a/astro.config.mjs b/astro.config.mjs index 882e651..8d6acc1 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -1,4 +1,9 @@ import { defineConfig } from 'astro/config'; // https://astro.build/config -export default defineConfig({}); +// https://docs.astro.build/en/guides/deploy/gitlab/ +export default defineConfig({ + sitemap: true, + outDir: 'public', + publicDir: 'static', +}); diff --git a/public/favicon.svg b/public/favicon.svg deleted file mode 100644 index 0f39062..0000000 --- a/public/favicon.svg +++ /dev/null @@ -1,13 +0,0 @@ -<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 36 36"> - <path fill="#000" d="M22.25 4h-8.5a1 1 0 0 0-.96.73l-5.54 19.4a.5.5 0 0 0 .62.62l5.05-1.44a2 2 0 0 0 1.38-1.4l3.22-11.66a.5.5 0 0 1 .96 0l3.22 11.67a2 2 0 0 0 1.38 1.39l5.05 1.44a.5.5 0 0 0 .62-.62l-5.54-19.4a1 1 0 0 0-.96-.73Z"/> - <path fill="url(#gradient)" d="M18 28a7.63 7.63 0 0 1-5-2c-1.4 2.1-.35 4.35.6 5.55.14.17.41.07.47-.15.44-1.8 2.93-1.22 2.93.6 0 2.28.87 3.4 1.72 3.81.34.16.59-.2.49-.56-.31-1.05-.29-2.46 1.29-3.25 3-1.5 3.17-4.83 2.5-6-.67.67-2.6 2-5 2Z"/> - <defs> - <linearGradient id="gradient" x1="16" x2="16" y1="32" y2="24" gradientUnits="userSpaceOnUse"> - <stop stop-color="#000"/> - <stop offset="1" stop-color="#000" stop-opacity="0"/> - </linearGradient> - </defs> - <style> - @media (prefers-color-scheme:dark){:root{filter:invert(100%)}} - </style> -</svg> -- GitLab