File tree Expand file tree Collapse file tree 2 files changed +24
-9
lines changed Expand file tree Collapse file tree 2 files changed +24
-9
lines changed Original file line number Diff line number Diff line change 3
3
name : Run Build
4
4
on :
5
5
push :
6
+ tags :
7
+ - v*.*.*
6
8
7
9
defaults :
8
10
run :
39
41
run : |
40
42
poetry config virtualenvs.in-project true
41
43
44
+ - name : Get tag POETRY tag
45
+ id : poetry-tag
46
+ run : echo ::set-output name=TAG::v$(poetry version -s)
47
+
48
+ - name : Get GITHUB tag
49
+ id : git-tag
50
+ run : echo ::set-output name=TAG::${GITHUB_REF#refs/*/}
51
+
52
+ - name : Print tags
53
+ run : |
54
+ echo POETRY ${{ steps.poetry-tag.outputs.TAG }}
55
+ echo GIT ${{ steps.git-tag.outputs.TAG }}
56
+
57
+ - name : Validate tag
58
+ run : |
59
+ poetryTag="${{ steps.poetry-tag.outputs.TAG }}"
60
+ gitTag="${{ steps.git-tag.outputs.TAG }}"
61
+ python -c "import sys; eq='$poetryTag'!='$gitTag'; sys.exit(int(eq))"
62
+ exit $?
63
+
42
64
- name : Set up cache
43
65
uses : actions/cache@v2
44
66
with :
58
80
id : exe-name
59
81
run : echo ::set-output name=NAME::$(poetry version) - ${{ format(matrix.os) }}
60
82
61
- - name : Get tag
62
- id : my-tag
63
- run : echo ::set-output name=TAG::v$(poetry version -s)
64
-
65
- - name : Validate tag
66
- run : exit 1
67
-
68
83
- name : Add pyinstaller to path (Windows)
69
84
if : ${{ matrix.os == 'windows-latest' }}
70
85
run : echo ".venv/scripts" >> $GITHUB_PATH
90
105
removeArtifacts : false
91
106
replaceArtifacts : true
92
107
body : " Automatically generated release."
93
- tag : ${{ steps.my -tag.outputs.TAG }}
108
+ tag : ${{ steps.poetry -tag.outputs.TAG }}
94
109
95
110
96
111
Original file line number Diff line number Diff line change 1
1
[tool .poetry ]
2
2
name = " db-temperature-distribution"
3
- version = " 0.1.1 "
3
+ version = " 0.1.2 "
4
4
description = " "
5
5
authors = [" Vojtech Panek <vojtech.panek@designbuilder.co.uk>" ]
6
6
You can’t perform that action at this time.
0 commit comments