File tree 2 files changed +35
-2
lines changed
2 files changed +35
-2
lines changed Original file line number Diff line number Diff line change 6
6
- master
7
7
8
8
jobs :
9
+ create_release :
10
+ name : Create GitHub Release
11
+ runs-on : ubuntu-latest
12
+ steps :
13
+ - name : Checkout code
14
+ uses : actions/checkout@master
15
+ with :
16
+ fetch-depth : 2
17
+ - name : Get changed files
18
+ id : changed-files
19
+ uses :
tj-actions/[email protected]
20
+ - name : Tag Version
21
+ if : contains(steps.changed-files.outputs.modified_files, 'src/fcl/version.py')
22
+ id : set_tag
23
+ run : |
24
+ export VER=v$(python -c "exec(open('src/fcl/version.py','r').read());print(__version__)")
25
+ echo "::set-output name=tag_name::${VER}"
26
+ - name : Create Release
27
+ if : contains(steps.changed-files.outputs.modified_files, 'src/fcl/version.py')
28
+ id : create_release
29
+ uses : actions/create-release@v1
30
+ env :
31
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
32
+ with :
33
+ tag_name : ${{ steps.set_tag.outputs.tag_name }}
34
+ release_name : ${{ steps.set_tag.outputs.tag_name }}
35
+ draft : false
36
+ prerelease : false
37
+ outputs :
38
+ mod_files : ${{ steps.changed-files.outputs.modified_files }}
39
+
9
40
build_wheels :
41
+ if : contains(needs.create_release.outputs.mod_files, 'src/fcl/version.py')
10
42
name : Build wheel on ${{matrix.platform}}
11
43
runs-on : ${{matrix.platform}}
44
+ needs : create_release
12
45
strategy :
13
46
matrix :
14
47
platform : [ubuntu-latest, macos-latest, windows-latest]
27
60
overwrite : true
28
61
draft : false
29
62
update_latest_release : true
30
- tag_name : 0.6.1
63
+
31
64
upload_pypi :
32
65
needs : [build_wheels]
33
66
runs-on : ubuntu-latest
Original file line number Diff line number Diff line change 1
- __version__ = "0.6.1 "
1
+ __version__ = "0.6.11 "
You can’t perform that action at this time.
0 commit comments