Skip to content

Commit 027b5f2

Browse files
authored
feat: fix if statment and enable actions to generate relases
1 parent 3d08ecf commit 027b5f2

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

.github/workflows/python-app.yml

+9-7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# This workflow will install Python dependencies, run tests and lint with a single version of Python
2-
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
3-
41
name: Python application
52

63
on:
@@ -14,7 +11,6 @@ permissions:
1411

1512
jobs:
1613
build:
17-
1814
runs-on: ubuntu-latest
1915

2016
steps:
@@ -44,7 +40,7 @@ jobs:
4440
name: docker-dev-lamp-linux
4541
path: src/dist/linux
4642

47-
- name: Package Application Linux
43+
- name: Package Application Windows
4844
uses: JackMcKew/pyinstaller-action-windows@main
4945
with:
5046
path: src
@@ -54,5 +50,11 @@ jobs:
5450
name: docker-dev-lamp-windows
5551
path: src/dist/windows
5652

57-
58-
53+
- name: Create GitHub Release
54+
uses: softprops/action-gh-release@v1
55+
with:
56+
files: |
57+
src/dist/linux/**/*
58+
src/dist/windows/**/*
59+
env:
60+
GITHUB_TOKEN: ${{ secrets.ACTIONS_SECRET_TOKEN }}

src/docker-dev-lamp-env.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ def generateFileWithPath(path,content,lines=False,isYaml=False):
162162

163163
generateFileWithPath(f'{appName}/{mysqlDir}/.gitignore',"""*.sql""")
164164

165-
if(gitRepoUrl)
165+
if gitRepoUrl:
166166
print(f'Clonando repositório {gitRepoUrl}\n')
167167
Repo.clone_from(gitRepoUrl, f"{appName}",progress=CloneProgress())
168168

0 commit comments

Comments
 (0)