Skip to content

pre-release

pre-release #1

Workflow file for this run

name: Pre-Release
on:
workflow_dispatch:
inputs:
version:
description: 'Release version (e.g., v1.0.0)'
required: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 18.x
- name: Install dependencies
run: npm ci
- name: Build resources
run: npm run build
- name: Build with electron-builder
uses: samuelmeuli/action-electron-builder@v1
with:
github_token: ${{ secrets.github_token }}
release: true
args: -c.extraMetadata.version=${{ github.event.inputs.version }}
- name: Create Pre-Release
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "${{ github.event.inputs.version }}"
prerelease: true
title: "Pre-Release ${{ github.event.inputs.version }}"
files: |
dist/*.exe
dist/*.AppImage
dist/*.deb
dist/*.snap