Skip to content

Build and Release Executable #38

Build and Release Executable

Build and Release Executable #38

Workflow file for this run

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 --icon=icon32.ico --name=AutoBrightnessControl brightness_control.py
- name: Create release folder
run: |
mkdir release
copy dist\AutoBrightnessControl.exe release\
copy create_task.bat release\
copy remove_task.bat release\
- name: Create ZIP archive
run: |
Compress-Archive -Path release\* -DestinationPath AutoBrightnessControl.zip
- name: Create Release and Upload Files
uses: ncipollo/release-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag: 1.3.12.1
name: "AutoBrightnessControl v1.3.12"
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\nNow the application works correctly with both monitors that support brightness control and those that do not."
draft: false
prerelease: false
makeLatest: true
artifacts: |
AutoBrightnessControl.zip