From e30be5fd3b0c67a39336764ee6177d3c8fa887ae Mon Sep 17 00:00:00 2001 From: ian Date: Sat, 27 Apr 2024 04:56:42 +0700 Subject: [PATCH] #patch github action for updating app version --- .../workflows/release-installer-package.yaml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-installer-package.yaml b/.github/workflows/release-installer-package.yaml index b51280ff..827c6fcf 100644 --- a/.github/workflows/release-installer-package.yaml +++ b/.github/workflows/release-installer-package.yaml @@ -3,16 +3,33 @@ 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 + uses: anothrNick/github-tag-action@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + WITH_V: true - name: Create release folder run: | + echo "${{ steps.update-version.outputs.tag }}" 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/