Skip to content

fix: add support for version tags with suffix in release workflow #25

fix: add support for version tags with suffix in release workflow

fix: add support for version tags with suffix in release workflow #25

Workflow file for this run

name: Release
on:
push:
tags:
- 'v*.*.*'
- 'v*.*.*-*'
jobs:
release:
runs-on: ${{ matrix.os }}
permissions:
contents: write
actions: write
strategy:
matrix:
include:
- os: macos-latest
arch: arm64
- os: macos-latest
arch: x64
- os: windows-latest
arch: x64
- os: ubuntu-latest
arch: x64
- os: ubuntu-latest
arch: arm64
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Install dependencies
run: npm ci
env:
ELECTRON_MIRROR: https://npmmirror.com/mirrors/electron/
- name: Build application
run: npm run build
- name: Build and Publish (macOS)
if: matrix.os == 'macos-latest'
run: npx electron-builder --mac --${{ matrix.arch }} --publish=onTag
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ELECTRON_MIRROR: https://npmmirror.com/mirrors/electron/
- name: Build and Publish (Windows)
if: matrix.os == 'windows-latest'
run: npx electron-builder --win --${{ matrix.arch }} --publish=onTag
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ELECTRON_MIRROR: https://npmmirror.com/mirrors/electron/
- name: Build and Publish (Linux)
if: matrix.os == 'ubuntu-latest'
run: npx electron-builder --linux --${{ matrix.arch }} --publish=onTag
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ELECTRON_MIRROR: https://npmmirror.com/mirrors/electron/