-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (32 loc) · 1.01 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
name: Release
on:
workflow_dispatch:
env:
RELEASE_NAME: ""
permissions:
contents: write
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install dependencies
run: |
echo "RELEASE_NAME=$(Get-Date -Format 'yyyy-MM-dd').alpha" | Out-File -FilePath $Env:GITHUB_ENV -Append
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Build executable with PyInstaller
run: pyinstaller --name=ytmasc --icon=".\assets\icon.ico" --onefile .\ytmasc\__main__.py
- name: Create Release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ env.RELEASE_NAME }}
prerelease: true
body: Alpha stage release
files: .\dist\ytmasc.exe
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}