Skip to content

Release

Release #10

Workflow file for this run

name: Release
on:
workflow_dispatch:
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: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Build executable with PyInstaller
run: pyinstaller .\ytmasc\__main__.py
- name: Release preparations
run: |
cd .\dist\__main__
ren __main__.exe ytmasc.exe
zip -q -r ..\..\test.zip .
cd ..\..
echo "RELEASE_NAME=$(Get-Date -Format 'yyyy-MM-dd').alpha" | Out-File -FilePath $Env:GITHUB_ENV -Append
- name: Create Release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ env.RELEASE_NAME }}
prerelease: true
body: Alpha stage release
files: ytmasc.exe
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}