From 468e0c17192d869930f20fd835f5e2ad25c3ffda Mon Sep 17 00:00:00 2001 From: syaiful-aa Date: Fri, 28 Jun 2024 16:15:25 +0700 Subject: [PATCH] u --- .github/workflows/tag-triggered.yml | 41 ----------------------- .github/workflows/update-main-version.yml | 37 +++++++++++++------- pubspec.yaml | 2 +- 3 files changed, 26 insertions(+), 54 deletions(-) delete mode 100644 .github/workflows/tag-triggered.yml diff --git a/.github/workflows/tag-triggered.yml b/.github/workflows/tag-triggered.yml deleted file mode 100644 index 3c7eef2..0000000 --- a/.github/workflows/tag-triggered.yml +++ /dev/null @@ -1,41 +0,0 @@ -name: Triggered by tag creation - -on: - push: - tags: - - '*' - -env: - CLOUDSMITH_REPOSITORY: https://dart.cloudsmith.io/agriaku-engineering/agriaku_design_system/ - -jobs: - publish: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - # - name: setup flutter - # uses: subosito/flutter-action@v2 - # with: - # cache: true - - # - name: authenticate cloudsmith - # run: echo ${{ secrets.CLOUDSMITH_API_KEY }} | dart pub token add $CLOUDSMITH_REPOSITORY - - # - name: adjust pubspec - # uses: Agriaku/agriaku_app_actions/cloudsmith-dependencies@v1.10.0 - # with: - # hosted_link: ${{ env.CLOUDSMITH_REPOSITORY }} - - # - name: publish - # run: dart pub publish --force - - - name: simulate publish - run: | - git status - echo - - - name: Dump GitHub context - env: - GITHUB_CONTEXT: ${{ toJSON(github) }} - run: echo "$GITHUB_CONTEXT" diff --git a/.github/workflows/update-main-version.yml b/.github/workflows/update-main-version.yml index 300d139..7980e1b 100644 --- a/.github/workflows/update-main-version.yml +++ b/.github/workflows/update-main-version.yml @@ -46,16 +46,29 @@ jobs: with: ref: ${{ github.event.pull_request.merge_commit_sha }} - - name: Tag new target - run: | - git config user.email "action@github.com" - git config user.name "GitHub Action" - - git tag -f v${{ needs.validate_version.outputs.full_version }} -m $'${{ github.event.pull_request.title }}' - git tag -f v${{ needs.validate_version.outputs.major_version }} -m $'${{ github.event.pull_request.title }}' - - - name: Push new tag - run: | - git push -f origin v${{ needs.validate_version.outputs.full_version }} - git push -f origin v${{ needs.validate_version.outputs.major_version }} + # - name: Tag new target + # run: | + # git config user.email "action@github.com" + # git config user.name "GitHub Action" + + # git tag -f v${{ needs.validate_version.outputs.full_version }} -m $'${{ github.event.pull_request.title }}' + # git tag -f v${{ needs.validate_version.outputs.major_version }} -m $'${{ github.event.pull_request.title }}' + + # - name: Push new tag + # run: | + # git push -f origin v${{ needs.validate_version.outputs.full_version }} + # git push -f origin v${{ needs.validate_version.outputs.major_version }} + + - name: "🏷️ Push tag" + uses: EndBug/latest-tag@v1 + with: + tag-name: v${{ needs.validate_version.outputs.full_version }} + description: ${{ github.event.pull_request.title }} + + - name: "🏷️ Push tag" + uses: EndBug/latest-tag@v1 + with: + tag-name: v${{ needs.validate_version.outputs.major_version }} + description: ${{ github.event.pull_request.title }} + diff --git a/pubspec.yaml b/pubspec.yaml index e91dfc1..2250b40 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: quick_math description: A new Flutter package project. -version: 3.0.3 +version: 3.0.4 homepage: environment: