Skip to content

Commit

Permalink
Merge pull request #51 from AnotherStranger/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
AnotherStranger authored Nov 25, 2024
2 parents 0cc2fb8 + da1f694 commit 68c0cf2
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 13 deletions.
22 changes: 12 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ jobs:

steps:
- name: Checkout Repository
uses: actions/checkout@v4
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4

- name: Set up Python
uses: actions/setup-python@v5
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5
with:
python-version: '3.13'

Expand All @@ -40,18 +40,20 @@ jobs:
nuitka-version: main
enable-plugins: pyside6
script-name: rockbox_listenbrainz_scrobbler/rockbox_listenbrainz_ui.py
mode: onefile
mode: standalone
static-libpython: auto
lto: auto

- name: Zip Artifacts
if: runner.os == 'Windows'
run: Compress-Archive -Path build/*.exe, build/*.bin, build/*.app -DestinationPath ${{ runner.os }}-artifacts.zip
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/*.exe build/*.bin build/*.app/*
run: zip -r ${{ runner.os }}-artifacts.zip build/*.dist

- name: Upload Artifacts
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4
with:
name: ${{ runner.os }} Build
path: ${{ runner.os }}-artifacts.zip
Expand All @@ -65,16 +67,16 @@ jobs:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
fetch-depth: 0

- uses: actions/download-artifact@v4
- uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4
with:
path: artifacts/

- name: Set up Python
uses: actions/setup-python@v5
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5
with:
python-version: '3.13'

Expand All @@ -87,7 +89,7 @@ jobs:
run: poetry install

- name: Setup Node.js
uses: actions/setup-node@v4
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4
with:
node-version: "lts/*"
- name: Release
Expand Down
4 changes: 2 additions & 2 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion rockbox_listenbrainz_scrobbler/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class ScrobblerEntry(BaseModel):

@field_validator("musicbrainz_trackid")
@classmethod
def ensure_empy_as_none(cls, value):
def ensure_empty_as_none(cls, value):
if value is None:
return value

Expand Down

0 comments on commit 68c0cf2

Please sign in to comment.