Skip to content

fix release var name #10

fix release var name

fix release var name #10

Workflow file for this run

name: Build and Release
on:
push:
tags:
- "v*"
jobs:
build:
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Check-out repository
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: "pip"
cache-dependency-path: |
**/requirements*.txt
- name: Install your Dependencies
run: |
pip install -r requirements.txt
- name: Build Executable with Nuitka
uses: Nuitka/Nuitka-Action@main
env:
DEBUG_COMPILATION: yes
with:
nuitka-version: main
script-name: ytm2spt.py
enable-plugins: pyside6
user-package-configuration-file: ytmusicapi.nuitka-package.config.yaml
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: ytm2spt-${{ matrix.os }}-build
path: | # match what's created for the 3 OSes
build/*.exe
build/*.bin
build/*.app/**/*
overwrite: true
release:
if: startsWith(github.ref, 'refs/tags/')
needs: build
runs-on: ubuntu-latest
steps:
- name: Download All Artifacts
uses: actions/download-artifact@v4
- run: ls -R
- name: Compress Artifacts
run: |
chmod +x *build/*.bin *build/*.exe *build/*.app/Contents/MacOS/*
zip -9 ytm2spt-${{ github.ref_name }}-windows.zip *build/*.exe
tar -cavf ytm2spt-${{ github.ref_name }}-linux.tar.gz *build/*.bin
zip -r -9 ytm2spt-${{ github.ref_name }}-macos.zip *build/*.app
- name: Release
uses: softprops/action-gh-release@v2
with:
files: |
ytm2spt-${{ github.ref_name }}-windows.zip
ytm2spt-${{ github.ref_name }}-linux.tar.gz
ytm2spt-${{ github.ref_name }}-macos.zip