mirror of
https://github.com/Dr-Blank/Vaani.git
synced 2025-12-25 20:39:31 +00:00
feat: add version extraction step to release workflow
This commit is contained in:
parent
1f7db0b22b
commit
18df8b10e1
1 changed files with 12 additions and 2 deletions
14
.github/workflows/flutter_release.yaml
vendored
14
.github/workflows/flutter_release.yaml
vendored
|
|
@ -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
|
||||
|
|
@ -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 }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue