Skip to content

Build with Briefcase #36

Build with Briefcase

Build with Briefcase #36

Workflow file for this run

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 }}