Skip to content

Commit 5463fee

Browse files
committed
Fixing CI publish require tag
1 parent 0577182 commit 5463fee

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

.github/workflows/flutter_ci_cd.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
branches: [ release ]
88

99
jobs:
10-
build-android:
10+
deploy-apk:
1111
name: Build Android APK
1212
runs-on: ubuntu-latest
1313

@@ -45,9 +45,23 @@ jobs:
4545
name: android-release-apk
4646
path: build/app/outputs/flutter-apk/app-release.apk
4747

48+
- name: Create Release
49+
id: create_release
50+
uses: actions/create-release@latest
51+
env:
52+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
53+
with:
54+
tag_name: ${{ github.ref }}
55+
release_name: Release ${{ github.ref }}
56+
body: |
57+
New release for ${{ github.ref }}.
58+
draft: false
59+
prerelease: false
60+
4861
- name: Create Release and Upload APK
4962
uses: softprops/action-gh-release@v2
5063
with:
64+
tag_name: ${{ github.ref }}
5165
files: build/app/outputs/flutter-apk/app-release.apk
5266
env:
53-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Use the default GITHUB_TOKEN
67+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)