Skip to content

Commit b43b866

Browse files
authored
fix tag creation step
1 parent 027b5f2 commit b43b866

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

.github/workflows/python-app.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
branches: [ master ]
88

99
permissions:
10-
contents: read
10+
contents: write
1111

1212
jobs:
1313
build:
@@ -26,9 +26,7 @@ jobs:
2626
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
2727
- name: Lint with flake8
2828
run: |
29-
# stop the build if there are Python syntax errors or undefined names
3029
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
3230
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
3331
- name: Package Application Linux
3432
uses: JackMcKew/pyinstaller-action-linux@main
@@ -50,11 +48,21 @@ jobs:
5048
name: docker-dev-lamp-windows
5149
path: src/dist/windows
5250

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+
5359
- name: Create GitHub Release
5460
uses: softprops/action-gh-release@v1
5561
with:
5662
files: |
5763
src/dist/linux/**/*
5864
src/dist/windows/**/*
65+
tag_name: ${{ env.VERSION }}
66+
name: Release ${{ env.VERSION }}
5967
env:
6068
GITHUB_TOKEN: ${{ secrets.ACTIONS_SECRET_TOKEN }}

0 commit comments

Comments
 (0)