From 35de03a5c4b13ebea36eed667c9665bdb8424590 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Beno=C3=AEt=20Harrault?= <benoit@harrault.fr>
Date: Fri, 10 Jan 2025 10:40:20 +0100
Subject: [PATCH] Publish package to private repository

---
 .gitlab-ci.yml | 4 ++++
 CHANGELOG.md   | 4 ++++
 pubspec.yaml   | 4 ++--
 3 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 24146a6..0f3979c 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -50,5 +50,9 @@ application:release:
       else
         git tag -a "${TAG_NAME}" -m "Release ${VERSION_NAME}"
         git push origin "${TAG_NAME}"
+        flutter clean
+        flutter packages get
+        echo "${PRIVATE_PACKAGES_REPOSITORY_KEY}" | flutter pub token add https://pub.harrault.fr
+        flutter pub publish --force
         curl --silent -d "{\"token\": \"${JABBER_NOTIFICATION_TOKEN}\", \"message\": \"New tag for ${CI_PROJECT_PATH}: ${TAG_NAME}\"}" -H "Content-Type: application/json" -X POST ${JABBER_NOTIFICATION_URL}
       fi
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 9c20b08..092ee02 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,7 @@
+## 1.0.0
+
+-   Publish package to private repository https://pub.harrault.fr
+
 ## 0.9.1
 
 -   Default use Column instead of ListView in parameters list to avoid update issue
diff --git a/pubspec.yaml b/pubspec.yaml
index 313c9c6..c53d70e 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -1,9 +1,9 @@
 name: flutter_custom_toolbox
 description: "Flutter custom toolbox for org.benoitharrault.* projects."
 
-publish_to: "none"
+publish_to: https://pub.harrault.fr/
 
-version: 0.9.1
+version: 1.0.0
 
 homepage: https://git.harrault.fr/android/flutter-toolbox
 
-- 
GitLab