Skip to content

Commit

Permalink
update workflow
Browse files Browse the repository at this point in the history
Signed-off-by: kuromesi <[email protected]>
  • Loading branch information
Kuromesi committed Nov 6, 2024
1 parent 6d04418 commit a3349bc
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
version=$(grep '^version: ' pubspec.yaml | cut -d ' ' -f 2 | tr -d '\r')
echo "VERSION=$version" >> $GITHUB_ENV
#11 Check if Tag Exists
#9 Check if Tag Exists
- name: Check if Tag Exists
id: check_tag
run: |
Expand All @@ -75,18 +75,17 @@ jobs:
echo "TAG_EXISTS=false" >> $GITHUB_ENV
fi
#12 Modify Tag if it Exists
#10 Modify Tag if it Exists
- name: Modify Tag
if: env.TAG_EXISTS == 'true'
id: modify_tag
run: |
new_version="${{ env.VERSION }}-build-${{ github.run_number }}"
echo "VERSION=$new_version" >> $GITHUB_ENV
#13 Create Release
#11 Create Release
- name: Create Release
uses: ncipollo/release-action@v1
with:
artifacts: "build/app/outputs/flutter-apk/app-release.apk"
tag: v${{ env.VERSION }}
token: ${{ secrets.TOKEN }}
tag: v${{ env.VERSION }}

0 comments on commit a3349bc

Please sign in to comment.