Skip to content

refactor: add troi dep #46

refactor: add troi dep

refactor: add troi dep #46

Workflow file for this run

name: Build Package
on:
push:
branches:
- main
- dev
- feature/*
- refactor/*
- fix/
jobs:
build:
strategy:
matrix:
os: [ macos-latest, ubuntu-latest, windows-latest ]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install Poetry
run: |
pip install poetry
poetry config virtualenvs.create false
- name: Install dependencies
run: poetry install
- name: Build Executable
uses: Nuitka/Nuitka-Action@main
with:
nuitka-version: main
enable-plugins: pyside6
script-name: rockbox_listenbrainz_scrobbler/rockbox_listenbrainz_ui.py
onefile: true
- name: Zip Artifacts
if: runner.os == 'Windows'
run: Compress-Archive -Path build/*.exe, build/*.bin, build/*.app -DestinationPath ${{ runner.os }}-artifacts.zip
- name: Zip Artifacts
if: runner.os != 'Windows'
run: zip -r ${{ runner.os }}-artifacts.zip build/*.exe build/*.bin build/*.app/*
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: ${{ runner.os }} Build
path: ${{ runner.os }}-artifacts.zip
release:
name: Release
needs: build
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/main'
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/download-artifact@v4
with:
path: artifacts/
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install Poetry
run: |
pip install poetry
poetry config virtualenvs.create false
- name: Install dependencies
run: poetry install
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "lts/*"
- name: Release
env:
GITHUB_TOKEN: "${{ secrets.GH_TOKEN }}"
run: npx --package @semantic-release/git --package @semantic-release/exec --package @semantic-release/changelog --package conventional-changelog-conventionalcommits --package semantic-release-replace-plugin semantic-release