Skip to content

Build

Build #3

Workflow file for this run

name: Build
on:
push:
tags:
- 'v*'
workflow_dispatch:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: windows-latest
artifact: deej.exe
- os: ubuntu-latest
artifact: deej
- os: macos-latest
artifact: deej.app
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install dependencies
run: |
pip install -r requirements.txt
pip install pyinstaller
- name: Build
run: python build.py
env:
PYTHONIOENCODING: utf-8
- name: Zip macOS artifact
if: matrix.os == 'macos-latest'
run: cd dist && zip -r deej.zip deej.app
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: deej-${{ matrix.os }}
path: ${{ matrix.os == 'macos-latest' && 'dist/deej.zip' || 'dist/${{ matrix.artifact }}' }}
- name: Create Release
if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v2
with:
files: ${{ matrix.os == 'macos-latest' && 'dist/deej.zip' || 'dist/${{ matrix.artifact }}' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}