Skip to content

Commit

Permalink
github action for updating app version
Browse files Browse the repository at this point in the history
  • Loading branch information
lone17 committed Apr 26, 2024
1 parent 2a7ecf6 commit 0ce32df
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/release-installer-package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,29 @@ name: Release installer package
on: push

jobs:
relase-installer-package:
release-installer-package:
runs-on: ubuntu-latest
steps:
- name: Clone the repo
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Update Application Version
id: update-version
uses: paulhatch/semantic-version@v5.3.0
with:
tag_prefix: "v"
major_pattern: "(MAJOR)"
minor_pattern: "(MINOR)"
version_format: "${major}.${minor}.${patch}"
bump_each_commit: true
bump_each_commit_patch_pattern: "(PATCH)"
debug: true
- name: Create release folder
run: |
echo "${{ steps.update-version.outputs.version }}"
pip install "setuptools-git-versioning>=2.0,<3"
setuptools-git-versioning
mkdir kotaemon-app
setuptools-git-versioning > kotaemon-app/VERSION
cp LICENSE.txt kotaemon-app/
Expand Down

0 comments on commit 0ce32df

Please sign in to comment.