-
-
Notifications
You must be signed in to change notification settings - Fork 4
52 lines (46 loc) · 1.51 KB
/
Copy pathpublish.yml
File metadata and controls
52 lines (46 loc) · 1.51 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
name: "publish"
on:
workflow_dispatch:
push:
branches:
- release
jobs:
publish-tauri:
permissions:
contents: write
runs-on: self-hosted
steps:
- uses: actions/checkout@v4
- name: Setup Node (LTS)
uses: actions/setup-node@v4
with:
node-version: lts/*
cache: npm
- name: Install frontend dependencies
run: npm install
- name: Build and Publish Tauri App
uses: tauri-apps/tauri-action@v0.5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}
TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }}
with:
tagName: crewmateinia350-v__VERSION__
releaseName: "CrewmateINIA350 v__VERSION__"
releaseBody: "See the assets to download this version and install."
releaseDraft: false
prerelease: false
includeUpdaterJson: true
- name: "Debug: list release assets"
uses: actions/github-script@v6
with:
script: |
const release = await github.rest.repos.getLatestRelease({
owner: context.repo.owner,
repo: context.repo.repo
});
console.log('Latest release tag:', release.data.tag_name);
console.log('Assets:');
for (const a of release.data.assets) {
console.log(`${a.name} -> ${a.browser_download_url}`);
}