ci(deploy): back up before migrating and run migrations explicitly (#9)
CD — Deployment / deploy (push) Successful in 23s

- dump the database to ./backups before applying migrations
- run the one-shot migrate service on every deploy instead of relying only on
  the api depends_on, so a migration is never skipped
- translate the workflow comments to English

---------

Co-authored-by: xEsiah <[email protected]>
Reviewed-on: #9
Reviewed-by: Esiah <[email protected]>
Co-authored-by: Gitea Actions <-[email protected]>
This commit was merged in pull request #9.
This commit is contained in:
Gitea Actions
2026-10-17 12:34:56 +00:00
committed by Esiah
co-authored by Esiah
parent bcbb5030ec
commit 4d725d9a3b
38 changed files with 1517 additions and 521 deletions
+6 -4
View File
@@ -2,6 +2,7 @@ import { useState } from "react";
import { NavLink, Outlet } from "react-router-dom";
import { Button, cn } from "../ui/index.js";
import { useSession } from "../lib/session.js";
import { useI18n } from "../lib/i18n.js";
import { Avatar } from "./Avatar.js";
import {
ActivityIcon,
@@ -50,6 +51,7 @@ const navClass = ({ isActive }: { isActive: boolean }) =>
export const AppShell = () => {
const { user, logout } = useSession();
const { t } = useI18n();
const [menuOpen, setMenuOpen] = useState(false);
if (!user) return null;
@@ -80,7 +82,7 @@ export const AppShell = () => {
return (
<NavLink key={item.to} to={item.to} className={navClass} onClick={() => setMenuOpen(false)}>
<Icon className="h-4 w-4" />
{item.label}
{t(item.label)}
</NavLink>
);
};
@@ -93,7 +95,7 @@ export const AppShell = () => {
{isAdmin ? (
<>
<p className="mt-3 px-3 py-1 font-display text-[0.6875rem] font-semibold uppercase tracking-label text-subtle-foreground">
Administration
{t("Administration")}
</p>
{ADMIN_NAV.map(renderLink)}
</>
@@ -108,7 +110,7 @@ export const AppShell = () => {
<button
type="button"
className="text-muted-foreground lg:hidden"
aria-label={menuOpen ? "Fermer le menu" : "Ouvrir le menu"}
aria-label={menuOpen ? t("Fermer le menu") : t("Ouvrir le menu")}
aria-expanded={menuOpen}
onClick={() => setMenuOpen((value) => !value)}
>
@@ -139,7 +141,7 @@ export const AppShell = () => {
iconLeading={<LogoutIcon className="h-3.5 w-3.5" />}
onClick={() => void logout()}
>
<span className="hidden sm:inline">Déconnexion</span>
<span className="hidden sm:inline">{t("Déconnexion")}</span>
</Button>
</div>
</div>