Skip to content

Commit

Permalink
ci: update flutter_build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
blackmonk13 committed May 12, 2024
1 parent ff4bed7 commit 3594e3c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/flutter_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,18 @@ jobs:
name: app-release.apk
path: build/app/outputs/flutter-apk/app-release.apk

- name: Extract version
id: extract_version
run: |
version=$(grep 'version:' pubspec.yaml | sed 's/version: //')
echo "VERSION=${version}-${GITHUB_RUN_NUMBER}" >> $GITHUB_ENV
- name: Create Tag
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git tag -a v${{ github.run_number }} -m "Release v${{ github.run_number }}"
git push origin v${{ github.run_number }}
git tag -a v${{ env.VERSION }} -m "Release v${{ env.VERSION }}"
git push origin v${{ env.VERSION }}
- name: GH Release
Expand Down

0 comments on commit 3594e3c

Please sign in to comment.