-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (34 loc) · 1.3 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
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.10'
- 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.10
name: "AutoBrightnessControl v1.3.10"
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 --adj.\n\nAll brightness control functionality has been moved to the BrightnessController class, which has been moved to the bright_controller.py file."
draft: false
prerelease: false
makeLatest: true
artifacts: |
dist/brightness_control.exe
create_task.bat