From ca7dfe4f2801f7b0e8164e3b1ec27898d56bad23 Mon Sep 17 00:00:00 2001
From: Lukas Nagel <lukas@lna-dev.net>
Date: Sat, 24 Jun 2023 12:45:52 +0200
Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20Changed=20to=20CreateTag=20Pipel?=
 =?UTF-8?q?ine?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .github/workflows/BuildAndPublish.yaml | 44 +++-----------------------
 pubspec.yaml                           |  2 +-
 2 files changed, 5 insertions(+), 41 deletions(-)

diff --git a/.github/workflows/BuildAndPublish.yaml b/.github/workflows/BuildAndPublish.yaml
index b4fc10f..d048e0f 100644
--- a/.github/workflows/BuildAndPublish.yaml
+++ b/.github/workflows/BuildAndPublish.yaml
@@ -18,43 +18,7 @@ jobs:
     runs-on: ubuntu-latest
     needs: Prepare
     steps:
-      - uses: actions/checkout@v3
-        with:
-          fetch-depth: 0
-
-      - run: git pull origin main
-
-      - name: Set PUBSPEC_VERSION
-        run: |
-          version=$(grep 'version:' pubspec.yaml | tail -n1 | awk '{ print $2}')
-
-          echo $version
-
-          echo "PUBSPEC_VERSION=$version" >> "$GITHUB_ENV"
-
-      - run: echo "${{ env.PUBSPEC_VERSION }}"
-
-      - run: echo "$(cat CHANGELOG.md)"
-
-      - run: |
-          git tag v${{ env.PUBSPEC_VERSION }}
-
-          git remote set-url origin "https://LNA-DEV:${{ secrets.GH_TOKEN }}@github.com/Fedodo/Fedodo.Pub.ActivityPub.git"
-
-          git push origin v${{ env.PUBSPEC_VERSION }}
-
-      - name: Create Release
-        uses: actions/create-release@latest
-        env:
-          GITHUB_TOKEN: "${{ secrets.GH_TOKEN }}"
-        with:
-          tag_name: v${{ env.PUBSPEC_VERSION }}
-          release_name: v${{ env.PUBSPEC_VERSION }}
-          draft: false
-          prerelease: false
-
-      - uses: "marvinpinto/action-automatic-releases@latest"
-        with:
-          repo_token: "${{ secrets.GH_TOKEN }}"
-          automatic_release_tag: "v${{ env.PUBSPEC_VERSION }}"
-          prerelease: false
+      - uses: Fedodo/Fedodo.Pipelines/CreateTagDart@main
+        with: 
+          GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
+          REPO_NAME: Fedodo.Pub.ActivityPub
diff --git a/pubspec.yaml b/pubspec.yaml
index 8cb1ba4..20ecf36 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -1,6 +1,6 @@
 name: activitypub
 description: A library for the ActivityPub standard. Created an also used by Fedodo.
-version: 1.1.3
+version: 1.1.4
 repository: https://github.com/Fedodo/Fedodo.Pub.ActivityPub
 
 environment: