Skip to content

Commit

Permalink
feat: add version extraction step to release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Dr-Blank committed Sep 18, 2024
1 parent 1f7db0b commit 18df8b1
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/flutter_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,16 @@ jobs:
name: release-apk
path: build/app/outputs/flutter-apk/app-release.apk

- name: version
id: version
run: |
tag=${GITHUB_REF/refs\/tags\//}
version=${tag#v}
major=${version%%.*}
echo "tag=${tag}" >> $GITHUB_OUTPUT
echo "version=${version}" >> $GITHUB_OUTPUT
echo "major=${major}" >> $GITHUB_OUTPUT
- name: Generate Release Notes
id: generate_release_notes
uses: release-drafter/release-drafter@v5
Expand All @@ -59,6 +69,6 @@ jobs:
uses: ncipollo/release-action@v1
with:
artifacts: build/app/outputs/flutter-apk/app-release.apk
name: ${{ github.ref_name }}
name: Release ${{ steps.version.outputs.version }}
tag: ${{ github.ref }}
# body: ${{ steps.generate_release_notes.outputs.notes }}
body: ${{ steps.generate_release_notes.outputs.body }}

0 comments on commit 18df8b1

Please sign in to comment.