-
Notifications
You must be signed in to change notification settings - Fork 53
46 lines (38 loc) · 1.08 KB
/
pre-release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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