-
Notifications
You must be signed in to change notification settings - Fork 1.3k
48 lines (46 loc) · 1.49 KB
/
release-installer-package.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Release installer package
on: push
jobs:
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/
cp flowsettings.py kotaemon-app/
cp launch.py kotaemon-app/
cp -r scripts kotaemon-app/
zip -r kotaemon-app.zip kotaemon-app
- name: Show release folder
run: tree kotaemon-app
- name: Release
uses: softprops/action-gh-release@v2
with:
files: kotaemon-app.zip
name: test-release
draft: true
fail_on_unmatched_files: true