Last active
March 2, 2025 09:57
-
-
Save sadiqsalau/02d060e9a4e988c06fe1d3228e4cc4d0 to your computer and use it in GitHub Desktop.
Electron Builder + Python Workflow Fix
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build/release Electron app | |
on: | |
push: | |
tags: | |
- v*.*.* | |
permissions: | |
contents: write | |
jobs: | |
release: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
steps: | |
- name: Check out Git repository | |
uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v4 | |
name: Install pnpm | |
with: | |
version: 'latest' | |
run_install: false | |
- name: Install Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 'lts/*' | |
cache: 'pnpm' | |
- name: Install Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.13' | |
- name: Install Python setup tools | |
run: | | |
pip install setuptools | |
- name: Install Dependencies | |
run: pnpm install | |
- name: Install Linux Dependencies | |
if: matrix.os == 'ubuntu-latest' | |
run: sudo apt-get install --no-install-recommends -y libopenjp2-tools libarchive-tools rpm | |
- name: build-linux | |
if: matrix.os == 'ubuntu-latest' | |
run: pnpm build:linux | |
- name: build-mac | |
if: matrix.os == 'macos-latest' | |
run: pnpm build:mac | |
- name: build-win | |
if: matrix.os == 'windows-latest' | |
run: pnpm build:win | |
- name: release | |
uses: softprops/action-gh-release@v2 | |
with: | |
draft: true | |
files: | | |
dist/*.exe | |
dist/*.zip | |
dist/*.dmg | |
dist/*.AppImage | |
dist/*.snap | |
dist/*.deb | |
dist/*.rpm | |
dist/*.pacman | |
dist/*.tar.gz | |
dist/*.yml | |
dist/*.blockmap | |
env: | |
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment