Build and Release Executable #26
This file contains 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: Build and Release Executable | |
on: | |
workflow_dispatch: | |
jobs: | |
build-and-release: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.13' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: Build executable | |
run: | | |
pip install pyinstaller | |
pyinstaller --onefile --noconsole brightness_control.py | |
- name: Create Release and Upload Files | |
uses: ncipollo/release-action@v1 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
tag: 1.3.11.11 | |
name: "AutoBrightnessControl v1.3.11" | |
body: "The main change in version 1.3.x was adaptive brightness change depending on the content on the screen. I understand that not everyone needs such a feature, that's why there is an argument --adapt.\n\nAll brightness control functionality has been moved to the BrightnessController class, which has been moved to the bright_controller.py file.\n\nNow the application works correctly with both monitors that support brightness control and those that do not." | |
draft: false | |
prerelease: false | |
makeLatest: true | |
artifacts: | | |
dist/brightness_control.exe | |
create_task.bat |