File tree 2 files changed +9
-28
lines changed
2 files changed +9
-28
lines changed Original file line number Diff line number Diff line change
1
+ ---
1
2
name : Release Version
2
3
3
4
on :
4
5
push :
5
- branches :
6
- - main
7
- paths :
8
- - filament_scale_enhanced/fse_version.py
6
+ tags :
7
+ - " v*"
9
8
10
9
jobs :
11
- tag :
10
+ generate-release :
12
11
runs-on : ubuntu-latest
13
- outputs :
14
- version : ${{ steps.output_version.outputs.version }}
15
12
steps :
16
13
- uses : actions/checkout@v2
17
- - name : collect_tag_version
14
+ - name : Set package version
18
15
run : |
19
- echo VERSION=$(cat filament_scale_enhanced/fse_version.py | awk '{ print $3 }' | sed 's/"//g') >> $GITHUB_ENV
20
- - name : Push tag
21
- uses :
mathieudutour/[email protected]
22
- with :
23
- github_token : ${{ secrets.GITHUB_TOKEN }}
24
- custom_tag : ${{ env.VERSION }}
25
- tag_prefix : v
26
- - name : Output Version
27
- id : output_version
28
- run : echo "::set-output name=version::${{ env.VERSION }}"
29
-
30
- release :
31
- runs-on : ubuntu-latest
32
- needs : tag
33
- steps :
34
- - uses : actions/checkout@v2
35
- with :
36
- ref : " v${{ needs.tag.outputs.version }}"
16
+ export VERSION=$(echo $GITHUB_REF | sed 's/refs\/tags\/v//')
17
+ echo "VERSION set to $VERSION"
18
+ echo VERSION = \'$VERSION\' > filament_scale_enhanced/fse_version.py
37
19
- name : Setup Python
38
20
uses : actions/setup-python@v2
39
21
with :
53
35
repo_token : " ${{ secrets.GITHUB_TOKEN }}"
54
36
prerelease : false
55
37
draft : false
56
- automatic_release_tag : " v${{ needs.tag.outputs.version }}"
57
38
files : |
58
39
LICENSE.txt
59
40
dist/Filament_Scale_Enhanced.zip
Original file line number Diff line number Diff line change 1
- VERSION = "0.2.7 "
1
+ VERSION = "0.0.0 "
You can’t perform that action at this time.
0 commit comments