-
Notifications
You must be signed in to change notification settings - Fork 1.5k
52 lines (50 loc) · 1.71 KB
/
auto-bump-and-release.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
49
50
51
52
name: Auto Bump
on: push
jobs:
auto-bump:
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 for ${{ steps.update-version.outputs.new_tag }}
run: |
echo Create release folder
mkdir kotaemon-app
echo ${{steps.update-version.outputs.new_tag }} > kotaemon-app/VERSION
cp LICENSE.txt kotaemon-app/
cp flowsettings.py kotaemon-app/
cp launch.py kotaemon-app/
cp -r scripts kotaemon-app/
tree kotaemon-app
zip -r kotaemon-app.zip kotaemon-app
- name: Release ${{ steps.update-version.outputs.new_tag }}
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
title: ${{ steps.update-version.outputs.new_tag }}
prerelease: true
automatic_release_tag: latest
files: kotaemon-app.zip
# uses: softprops/action-gh-release@v2
# with:
# files: kotaemon-app.zip
# name: test-release
# draft: true
# fail_on_unmatched_files: true