-
Notifications
You must be signed in to change notification settings - Fork 17
83 lines (72 loc) · 2.46 KB
/
Copy pathrelease.yml
File metadata and controls
83 lines (72 loc) · 2.46 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
72
73
74
75
76
77
78
79
80
81
82
83
name: Release
on:
push:
tags:
- 'v*'
workflow_dispatch: # Allow manual trigger
permissions:
contents: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
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
- name: Build and package (macOS)
if: matrix.os == 'macos-latest'
env:
# Skip code signing - builds will be unsigned
CSC_IDENTITY_AUTO_DISCOVERY: false
# Production environment variables
VITE_API_URL: ${{ secrets.PRODUCTION_API_URL || 'https://your-vibes-api-production-url.com/api' }}
VITE_PUSHER_KEY: ${{ secrets.PRODUCTION_PUSHER_KEY || 'your-production-pusher-key' }}
run: |
npm run make
- name: Build and package (Linux)
if: matrix.os == 'ubuntu-latest'
env:
# Production environment variables
VITE_API_URL: ${{ secrets.PRODUCTION_API_URL || 'https://your-vibes-api-production-url.com/api' }}
VITE_PUSHER_KEY: ${{ secrets.PRODUCTION_PUSHER_KEY || 'your-production-pusher-key' }}
run: |
npm run make
- name: Build and package (Windows)
if: matrix.os == 'windows-latest'
env:
# Skip code signing - builds will be unsigned
CSC_IDENTITY_AUTO_DISCOVERY: false
# Production environment variables
VITE_API_URL: ${{ secrets.PRODUCTION_API_URL || 'https://your-vibes-api-production-url.com/api' }}
VITE_PUSHER_KEY: ${{ secrets.PRODUCTION_PUSHER_KEY || 'your-production-pusher-key' }}
run: |
npm run make
- name: Upload artifacts to release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
out/make/**/*.dmg
out/make/**/*.zip
out/make/**/*.deb
out/make/**/*.rpm
out/make/**/*.exe
out/make/**/*.msi
out/make/**/*.AppImage
out/make/**/*.yml
out/make/**/*.blockmap
token: ${{ secrets.GITHUB_TOKEN }}
draft: false
prerelease: false