Skip to content

Release

Release #17

Workflow file for this run

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
move .\dist\ytmasc.exe .
- 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 }}