Skip to content

Commit

Permalink
feature: updated gh workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
efraespada committed Oct 6, 2024
1 parent 84baa08 commit 15d5e7f
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 80 deletions.
72 changes: 0 additions & 72 deletions .github/workflows/publish.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Tag Version on Push to Master
name: Tag Version and Publish on Push to Master

on:
push:
Expand Down Expand Up @@ -46,7 +46,7 @@ jobs:
--api_key "${{ secrets.CHAT_KEY }}" \
--title "🔴 Creation Tag Failed" \
--body "${{ github.repository }}: Tag v${{ env.VERSION }}" \
--url "https://github.com/landamessenger/object/actions/workflows/tag_version.yml" \
--url "https://github.com/landamessenger/object/actions/workflows/tag_version_and_publish.yml" \
--image "https://avatars.githubusercontent.com/u/63705403?s=200&v=4" \
--background_color "#55000000" \
--text_color "#FFFFFFFF"
Expand All @@ -56,7 +56,7 @@ jobs:
--api_key "${{ secrets.CHAT_KEY }}" \
--title "🟠 Creation Tag Canceled" \
--body "${{ github.repository }}: Tag v${{ env.VERSION }}" \
--url "https://github.com/landamessenger/object/actions/workflows/tag_version.yml" \
--url "https://github.com/landamessenger/object/actions/workflows/tag_version_and_publish.yml" \
--image "https://avatars.githubusercontent.com/u/63705403?s=200&v=4" \
--background_color "#55000000" \
--text_color "#FFFFFFFF"
Expand All @@ -66,8 +66,51 @@ jobs:
--api_key "${{ secrets.CHAT_KEY }}" \
--title "🟢 Creation Tag Passed" \
--body "${{ github.repository }}: Tag v${{ env.VERSION }}" \
--url "https://github.com/landamessenger/object/actions/workflows/tag_version.yml" \
--url "https://github.com/landamessenger/object/actions/workflows/tag_version_and_publish.yml" \
--image "https://avatars.githubusercontent.com/u/63705403?s=200&v=4" \
--background_color "#55000000" \
--text_color "#FFFFFFFF"
fi
fi
- run: flutter pub get

- run: dart pub publish --dry-run

- run: dart pub publish -f

- name: Handle publish job completion
if: always()
run: |
if [ "${{ job.status }}" == "failure" ]; then
landa-messenger-api chat-send \
--id "${{ secrets.CHAT_ID }}" \
--api_key "${{ secrets.CHAT_KEY }}" \
--title "🔴 Pub Publish Failed" \
--body "${{ github.repository }}: ${{ github.event.head_commit.message }}" \
--url "https://github.com/landamessenger/object/actions/workflows/tag_version_and_publish.yml" \
--image "https://avatars.githubusercontent.com/u/63705403?s=200&v=4" \
--background_color "#55000000" \
--text_color "#FFFFFFFF"
elif [ "${{ job.status }}" == "cancelled" ]; then
landa-messenger-api chat-send \
--id "${{ secrets.CHAT_ID }}" \
--api_key "${{ secrets.CHAT_KEY }}" \
--title "🟠 Pub Publish Canceled" \
--body "${{ github.repository }}: ${{ github.event.head_commit.message }}" \
--url "https://github.com/landamessenger/object/actions/workflows/tag_version_and_publish.yml" \
--image "https://avatars.githubusercontent.com/u/63705403?s=200&v=4" \
--background_color "#55000000" \
--text_color "#FFFFFFFF"
else
landa-messenger-api chat-send \
--id "${{ secrets.CHAT_ID }}" \
--api_key "${{ secrets.CHAT_KEY }}" \
--title "🟢 Pub Publish Passed" \
--body "${{ github.repository }}: ${{ github.event.head_commit.message }}" \
--url "https://github.com/landamessenger/object/actions/workflows/tag_version_and_publish.yml" \
--image "https://avatars.githubusercontent.com/u/63705403?s=200&v=4" \
--background_color "#55000000" \
--text_color "#FFFFFFFF"
fi

2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## 1.2.5
## 1.2.6

* Generating constructors.

Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: object
description: "Simplify the process of converting Dart objects to JSON and vice versa, making it easier to work with JSON data in Dart applications."
version: 1.2.5
version: 1.2.6
homepage: https://landamessenger.com
repository: https://github.com/landamessenger/object

Expand All @@ -12,7 +12,7 @@ dependencies:
flutter:
sdk: flutter
analyzer: ^6.2.0 # android ios linux macos web windows
cloud_firestore: ^5.4.3 # android ios macos web
cloud_firestore: ^5.4.4 # android ios macos web
intl: ^0.19.0 # android ios linux macos web windows
yaml: ^3.1.2 # android ios linux macos web windows

Expand Down

0 comments on commit 15d5e7f

Please sign in to comment.