Skip to content

Commit

Permalink
feat: fix if statment and enable actions to generate relases
Browse files Browse the repository at this point in the history
  • Loading branch information
ejklock authored Jul 30, 2024
1 parent 3d08ecf commit 027b5f2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: Python application

on:
Expand All @@ -14,7 +11,6 @@ permissions:

jobs:
build:

runs-on: ubuntu-latest

steps:
Expand Down Expand Up @@ -44,7 +40,7 @@ jobs:
name: docker-dev-lamp-linux
path: src/dist/linux

- name: Package Application Linux
- name: Package Application Windows
uses: JackMcKew/pyinstaller-action-windows@main
with:
path: src
Expand All @@ -54,5 +50,11 @@ jobs:
name: docker-dev-lamp-windows
path: src/dist/windows



- name: Create GitHub Release
uses: softprops/action-gh-release@v1
with:
files: |
src/dist/linux/**/*
src/dist/windows/**/*
env:
GITHUB_TOKEN: ${{ secrets.ACTIONS_SECRET_TOKEN }}
2 changes: 1 addition & 1 deletion src/docker-dev-lamp-env.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def generateFileWithPath(path,content,lines=False,isYaml=False):

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

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

Expand Down

0 comments on commit 027b5f2

Please sign in to comment.