-
Notifications
You must be signed in to change notification settings - Fork 0
98 lines (81 loc) · 2.76 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Set up Python
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5
with:
python-version: '3.13'
- 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
mode: standalone
static-libpython: auto
lto: auto
- name: Zip Artifacts
if: runner.os == 'Windows'
run: Compress-Archive -Path build/*.dist -DestinationPath ${{ runner.os }}-artifacts.zip
- name: Zip Artifacts
if: runner.os != 'Windows'
run: zip -r ${{ runner.os }}-artifacts.zip build/*.dist
- name: Upload Artifacts
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # 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@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
fetch-depth: 0
- uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4
with:
path: artifacts/
- name: Set up Python
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5
with:
python-version: '3.13'
- 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@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # 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