Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Update electron-builder config #13

Update electron-builder config

Update electron-builder config #13

Workflow file for this run

name: Build/release Marktext
on:
push:
tags:
- v*.*.*
jobs:
release:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
steps:
- name: Check out Git repository
uses: actions/checkout@v3
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 22
- name: Install Linux Build Dependencies
if: matrix.os == 'ubuntu-latest'
run: sudo apt-get update && sudo apt-get install -y icnsutils graphicsmagick xz-utils libx11-dev libxkbfile-dev gnome-keyring libsecret-1-dev libfontconfig-dev rpm
- name: Install Dependencies
run: npm install
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: build-linux
if: matrix.os == 'ubuntu-latest'
run: npm run build:linux
# Mac builds have been disabled due to a lack of a Developer ID to sign it
# All builds by default will give a "this app is damaged and can't be opened" error
# - name: build-mac
# if: matrix.os == 'macos-latest'
# run: npm run build:mac
- name: build-win
if: matrix.os == 'windows-latest'
run: npm run build:win
- name: release
uses: softprops/action-gh-release@v1
with:
draft: true
files: |
dist/*.exe
dist/*.zip
dist/*.dmg
dist/*.AppImage
dist/*.snap
dist/*.deb
dist/*.rpm
dist/*.tar.gz
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}