-
-
Notifications
You must be signed in to change notification settings - Fork 0
115 lines (100 loc) · 4.19 KB
/
release-app.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
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
###############################################################################
# RELEASE APPS
###############################################################################
name: 🚀 Release APPs
on:
repository_dispatch:
types: [trigger-workflow]
###############################################################################
# JOBS
###############################################################################
jobs:
release:
permissions:
contents: write
deployments: write
strategy:
fail-fast: false
matrix:
settings:
- platform: 'macos-latest'
args: '--target universal-apple-darwin'
- platform: 'macos-latest'
args: '--target x86_64-apple-darwin'
# - platform: 'macos-latest'
# args: '--target aarch64-apple-darwin'
# - platform: 'macos-latest'
- platform: 'ubuntu-22.04'
- platform: 'windows-latest'
runs-on: ${{ matrix.settings.platform }}
env:
TAG_VERSION: ${{ github.event.client_payload.app_version }}
steps:
#########################################################################
# INIT & INSTALL
#########################################################################
- name: Checkout repository
uses: actions/checkout@v4
- name: 🦀 Rust setup
uses: dtolnay/rust-toolchain@stable
with:
target: 'aarch64-apple-darwin'
- name: 🦀 Rust cache
uses: swatinem/rust-cache@v2
with:
workspaces: './src-tauri -> target'
- name: 📦 Install pnpm
uses: pnpm/action-setup@v2
id: pnpm-install
- name: 📦 Sync node version and setup cache
uses: actions/setup-node@v4
with:
node-version: 'lts/*'
cache: 'pnpm' # Set this to npm, yarn or pnpm.
- name: 📦📄 Get package.json name
id: pkg
run: |
echo "name=$(jq -r '.extra.productName' ./package.json)" >> $GITHUB_OUTPUT
echo "description=$(jq -r '.extra.description' ./package.json)" >> $GITHUB_OUTPUT
- name: 🦀 install dependencies (ubuntu only)
if: matrix.platform == 'ubuntu-20.04'
run: |
sudo apt-get update
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
- name: ⬇️📦 Install dependencies
run: |
pnpm install --no-frozen-lockfile
#########################################################################
# BUILD
#########################################################################
# important because app works with the core local package
- name: 🏗 Build
run: pnpm core build
- name: 🖥️ Build the app
uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}
TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }}
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}
TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }}
with:
# @see https://github.com/tauri-apps/tauri-action?tab=readme-ov-file#inputs
projectPath: 'packages/app'
tagName: "${{ env.TAG_VERSION }}"
releaseName: '${{ steps.pkg.outputs.name }} v${{ env.TAG_VERSION }}'
releaseBody: |
${{ steps.pkg.outputs.name }} apps and extensions v${{ env.TAG_VERSION }}
---
${{ steps.pkg.outputs.description }}
---
🌐 WEB: https:://super8.pigeonposse.com
📚 DOCUMENTATION: https:://docs.super8.pigeonposse.com
🧩 CHANGELOG: https://github.com/pigeonposse/super8/packages/exts/blob/main/packages/app/CHANGELOG.md
📜 LICENSE: https://github.com/pigeonposse/super8/blob/main/LICENSE
releaseDraft: false
prerelease: false
includeUpdaterJson: true
updaterJsonKeepUniversal: true # @see https://github.com/tauri-apps/tauri-action?tab=readme-ov-file#build-options
includeRelease: true
args: ${{ matrix.settings.args }}