-
Notifications
You must be signed in to change notification settings - Fork 163
48 lines (39 loc) · 1.16 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
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: Build with Briefcase
run: briefcase create windows && briefcase build windows && briefcase package windows
- name: Upload installer as an artifact
uses: actions/upload-artifact@v4
with:
name: Spotify2YTMusic-Windows-Installer
path: dist/Spotify2YTMusic-*.msi
- name: Download Artifact
uses: actions/download-artifact@v2
with:
name: Spotify2YTMusic-Windows-Installer
- name: Upload Release Asset
uses: softprops/action-gh-release@v1
#if: startsWith(github.ref, 'refs/tags/')
if: github.event_name == 'release' && github.event.action == 'released'
with:
files: dist/Spotify2YTMusic-*.msi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}