Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
chaos4455 authored Jun 19, 2024
1 parent e30ae00 commit dd3d613
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,25 +18,35 @@ jobs:
with:
python-version: '3.x' # ajuste conforme sua versão de Python

- name: Install dependencies
- name: Upgrade pip
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt # ajuste conforme seu arquivo de dependências
- name: Install PyInstaller
run: |
python -m pip install pyinstaller
- name: Install dependencies
run: |
python -m pip install -r requirements.txt # ajuste conforme seu arquivo de dependências
- name: Build executable
run: |
python -m PyInstaller --onefile --noconsole hostnameidgen.py
python -m PyInstaller --onefile --noconsole passwordgen.py
- name: Create versioned folder
run: |
mkdir -p programa
timestamp=$(date +'%Y%m%d_%H%M%S')
mv dist/hostnameidgen.exe programa/app_v_${timestamp}.exe
mv dist/passwordgen.exe programa/app_v_${timestamp}.exe
- name: Commit executable
- name: Configure Git
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
- name: Commit executable
run: |
git add programa/app_v_*.exe
git commit -m "Add executable for version $timestamp"
git push

0 comments on commit dd3d613

Please sign in to comment.