-
-
Notifications
You must be signed in to change notification settings - Fork 7
71 lines (61 loc) · 1.82 KB
/
Copy pathrelease.yml
File metadata and controls
71 lines (61 loc) · 1.82 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: SnapDock Release Pipeline
on:
workflow_dispatch:
push:
branches:
- main
# - 121-release-pipeline-improvements // test branch here
permissions:
contents: write
id-token: write
jobs:
# ---------------------------------------------------------
# 1. Desktop Installers (Windows + Linux)
# ---------------------------------------------------------
desktop:
name: Desktop Installers
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, ubuntu-latest]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 24
- name: Install Dependencies
run: npm ci
- name: Build Desktop Release
run: npm run build:release
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: desktop-${{ matrix.os }}
path: |
dist/*.exe
dist/*.deb
dist/*.AppImage
dist/*.zip
dist/*.dmg
if-no-files-found: ignore
# attempted to make store releases automated via github and keep hitting issues
# i managed to automate on my server and its a good enough fix for now but will need to look at this again in the future
# ---------------------------------------------------------
# 4. GitHub Release
# ---------------------------------------------------------
release:
name: Create GitHub Release
runs-on: ubuntu-latest
needs: [desktop]
steps:
- name: Download All Artifacts
uses: actions/download-artifact@v4
with:
path: release-assets
- name: Create Release
uses: softprops/action-gh-release@v2
with:
files: release-assets/**
generate_release_notes: true