File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change 7
7
branches : [ master ]
8
8
9
9
permissions :
10
- contents : read
10
+ contents : write
11
11
12
12
jobs :
13
13
build :
26
26
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
27
27
- name : Lint with flake8
28
28
run : |
29
- # stop the build if there are Python syntax errors or undefined names
30
29
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
31
- # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
32
30
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
33
31
- name : Package Application Linux
34
32
uses : JackMcKew/pyinstaller-action-linux@main
@@ -50,11 +48,21 @@ jobs:
50
48
name : docker-dev-lamp-windows
51
49
path : src/dist/windows
52
50
51
+ - name : Create Tag
52
+ id : create_tag
53
+ run : |
54
+ VERSION=$(date +"%Y%m%d%H%M%S")
55
+ echo "VERSION=$VERSION" >> $GITHUB_ENV
56
+ git tag $VERSION
57
+ git push origin $VERSION
58
+
53
59
- name : Create GitHub Release
54
60
uses : softprops/action-gh-release@v1
55
61
with :
56
62
files : |
57
63
src/dist/linux/**/*
58
64
src/dist/windows/**/*
65
+ tag_name : ${{ env.VERSION }}
66
+ name : Release ${{ env.VERSION }}
59
67
env :
60
68
GITHUB_TOKEN : ${{ secrets.ACTIONS_SECRET_TOKEN }}
You can’t perform that action at this time.
0 commit comments