remove duplicate log levels in stdout #8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Windows Build & Release | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.12' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
pip install pyinstaller | |
- name: Build executables with PyInstaller | |
run: | | |
pyinstaller recover.py --noconfirm --onefile --name "Data Recovery - Console" --console | |
pyinstaller recover.py --noconfirm --onefile --name "Data Recovery - Hidden" --windowed | |
- name: Rename files | |
run: | | |
Rename-Item -Path dist/"Data Recovery - Console.exe" -NewName data_recovery_console.exe | |
Rename-Item -Path dist/"Data Recovery - Hidden.exe" -NewName data_recovery_hidden.exe | |
- name: Create Tag | |
id: create_tag | |
run: | | |
$TAG="v$env:GITHUB_RUN_NUMBER" | |
echo "TAG_NAME=$TAG" >> $env:GITHUB_ENV | |
git tag $TAG | |
git push origin $TAG | |
shell: pwsh | |
- name: Create GitHub Release | |
uses: softprops/action-gh-release@v2 | |
with: | |
tag_name: ${{ env.TAG_NAME }} | |
name: "Release ${{ env.TAG_NAME }}" | |
draft: false | |
prerelease: false | |
files: | | |
dist/data_recovery_console.exe | |
dist/data_recovery_hidden.exe |