Skip to content

Commit

Permalink
added reading version name in github actions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Leonidius20 committed Jan 30, 2024
1 parent 52cb80d commit 8c3e43a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,20 @@ jobs:
uses: actions/upload-artifact@v2
with:
name: app-release.apk
path: app/build/outputs/apk/release/app-release-unsigned.apk
path: app/build/outputs/apk/release/app-release.apk
- name: Read version name
id: read_version_name
uses: ActionsTools/read-json-action@main
with:
file_path: "./app/version"
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
tag_name: ${{ steps.read_version_name.outputs.major }}.${{ steps.read_version_name.outputs.minor }}.${{ steps.read_version_name.outputs.patch }}
release_name: ${{ steps.read_version_name.outputs.major }}.${{ steps.read_version_name.outputs.minor }}.${{ steps.read_version_name.outputs.patch }}
body: |
Changes in this Release
- <add changes here>
Expand Down
2 changes: 1 addition & 1 deletion app/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"buildNumber":1,"patch":0,"minor":0,"major":0}
{"buildNumber":1,"patch":1,"minor":0,"major":0}

0 comments on commit 8c3e43a

Please sign in to comment.