-
Notifications
You must be signed in to change notification settings - Fork 103
48 lines (38 loc) · 1.25 KB
/
briefcase.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
name: Build with Briefcase
on:
release:
types: [released]
push:
branches:
- main
permissions:
contents: write
jobs:
build-and-upload:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install briefcase
- name: Update Application Version
if: github.event_name == 'release' && github.event.action == 'released'
run: |
(Get-Content pyproject.toml) -replace 'version = ".*"', 'version = "${{ github.ref_name }}"' | Set-Content pyproject.toml
shell: pwsh
- name: Build with Briefcase
run: briefcase create windows && briefcase build windows && briefcase package windows
- name: Upload Release Asset
uses: softprops/action-gh-release@v2
if: github.event_name == 'release' && github.event.action == 'released'
with:
files: dist/*.msi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# If I try pyinstaller I need to use "--collect-all ytmusicapi"
# https://ytmusicapi.readthedocs.io/en/stable/faq.html#how-do-i-package-ytmusicapi-with-pyinstaller