-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (42 loc) · 1.64 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
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