fix: usa action dedicata per la release su gitea
Some checks failed
Release Electron App / release-desktop (push) Failing after 3m17s
Some checks failed
Release Electron App / release-desktop (push) Failing after 3m17s
This commit is contained in:
@@ -3,7 +3,7 @@ run-name: Releasing ${{ gitea.ref_name }}
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- 'v*' # This tells Gitea to ONLY run this when a tag starting with "v" is pushed
|
- 'v*'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release-desktop:
|
release-desktop:
|
||||||
@@ -18,9 +18,19 @@ jobs:
|
|||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
run: npm install
|
run: npm install
|
||||||
|
|
||||||
- name: Build and Publish to Gitea Releases
|
- name: Build App (No Publish)
|
||||||
# The '-p always' flag tells electron-builder to upload the files to Gitea
|
# Rimosso '-p always'. Ora si limita a creare i file eseguibili.
|
||||||
run: npx electron-builder --linux --win -p always
|
run: npx electron-builder --linux --win
|
||||||
|
|
||||||
|
- name: Create Gitea Release & Upload
|
||||||
|
# Questa action è scritta apposta per interfacciarsi con le Release di Gitea
|
||||||
|
uses: akkuman/gitea-release-action@v1
|
||||||
env:
|
env:
|
||||||
# Gitea Actions automatically generates this token for you during the run!
|
NODE_OPTIONS: '--experimental-fetch'
|
||||||
GITEA_TOKEN: ${{ gitea.token }}
|
with:
|
||||||
|
# Assicurati che 'dist/' sia la cartella dove electron-builder salva i file finali.
|
||||||
|
# A volte potrebbe chiamarsi 'build/' o 'out/'.
|
||||||
|
files: |-
|
||||||
|
dist/**/*.exe
|
||||||
|
dist/**/*.AppImage
|
||||||
|
token: ${{ gitea.token }}
|
||||||
11
package.json
11
package.json
@@ -5,17 +5,6 @@
|
|||||||
"description": "Local-first intelligent desktop workspace",
|
"description": "Local-first intelligent desktop workspace",
|
||||||
"main": ".vite/build/main.js",
|
"main": ".vite/build/main.js",
|
||||||
"private": true,
|
"private": true,
|
||||||
"build": {
|
|
||||||
"appId": "adiuva",
|
|
||||||
"publish": [
|
|
||||||
{
|
|
||||||
"provider": "gitea",
|
|
||||||
"url": "http://10.0.0.119:3000",
|
|
||||||
"owner": "roberto",
|
|
||||||
"repo": "adiuva-ui"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "electron-forge start",
|
"start": "electron-forge start",
|
||||||
"package": "electron-forge package",
|
"package": "electron-forge package",
|
||||||
|
|||||||
Reference in New Issue
Block a user