generated from ossia-templates/score-custom-app-template
-
Notifications
You must be signed in to change notification settings - Fork 0
97 lines (88 loc) · 3.11 KB
/
build.yml
File metadata and controls
97 lines (88 loc) · 3.11 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
name: Build Koaia
on:
push:
pull_request:
branches: [ main, master ]
workflow_dispatch:
jobs:
build:
name: Package Custom App - ${{ matrix.platform }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
platform: linux-x86_64
artifact-name: linux-x86_64
- os: macos-latest
platform: macos-arm
artifact-name: macos-arm
- os: windows-latest
platform: windows
artifact-name: windows
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Package custom ossia score app
uses: ossia/actions/package-custom-app@master
with:
app-name: "Koaia"
qml-files: "qml"
# Optional: Add your score file here
score-file: "score/app.score"
release-tag: "continuous"
platforms: "${{ matrix.platform }}"
# App metadata
app-organization: "SAT"
app-domain: "sat.qc.ca"
app-identifier: "ca.qc.sat.koaia"
app-description: "A tool for exploring generative ai"
app-environment: environment
app-copyright: "Société des Arts Technologiques"
app-version: "1.0"
app-png: "qml/koaia/resources/images/koaia_logo.png"
app-icns: "qml/koaia/resources/images/koaia_logo.icns"
app-ico: "qml/koaia/resources/images/koaia_logo.ico"
# Optional: macOS code signing (requires secrets to be set in repository)
macos-certificate-base64: ${{ secrets.MAC_CERT_B64 }}
macos-certificate-password: ${{ secrets.MAC_CERT_PASSWORD }}
macos-notarize-team-id: ${{ secrets.MAC_NOTARIZE_TEAM_ID }}
macos-notarize-apple-id: ${{ secrets.MAC_NOTARIZE_APPLE_ID }}
macos-notarize-password: ${{ secrets.MAC_NOTARIZE_PASSWORD }}
- name: Upload packages
uses: actions/upload-artifact@v4
with:
name: koaia-${{ matrix.artifact-name }}
path: packages/
retention-days: 30
release:
name: Create Release
needs: build
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master'
steps:
- name: Download all artifacts
uses: actions/download-artifact@v4
with:
path: all-packages
pattern: koaia-*
merge-multiple: true
- name: Create Release (on tags)
if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v2
with:
files: all-packages/*
draft: false
prerelease: false
generate_release_notes: true
- name: Upload to Continuous Release (on main/master)
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master'
uses: softprops/action-gh-release@v2
with:
name: "Continuous Build"
tag_name: "continuous"
files: all-packages/*
draft: false
prerelease: true
generate_release_notes: false