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:
|
||||
push:
|
||||
tags:
|
||||
- 'v*' # This tells Gitea to ONLY run this when a tag starting with "v" is pushed
|
||||
- 'v*'
|
||||
|
||||
jobs:
|
||||
release-desktop:
|
||||
@@ -18,9 +18,19 @@ jobs:
|
||||
- name: Install Dependencies
|
||||
run: npm install
|
||||
|
||||
- name: Build and Publish to Gitea Releases
|
||||
# The '-p always' flag tells electron-builder to upload the files to Gitea
|
||||
run: npx electron-builder --linux --win -p always
|
||||
- name: Build App (No Publish)
|
||||
# Rimosso '-p always'. Ora si limita a creare i file eseguibili.
|
||||
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:
|
||||
# Gitea Actions automatically generates this token for you during the run!
|
||||
GITEA_TOKEN: ${{ gitea.token }}
|
||||
NODE_OPTIONS: '--experimental-fetch'
|
||||
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",
|
||||
"main": ".vite/build/main.js",
|
||||
"private": true,
|
||||
"build": {
|
||||
"appId": "adiuva",
|
||||
"publish": [
|
||||
{
|
||||
"provider": "gitea",
|
||||
"url": "http://10.0.0.119:3000",
|
||||
"owner": "roberto",
|
||||
"repo": "adiuva-ui"
|
||||
}
|
||||
]
|
||||
},
|
||||
"scripts": {
|
||||
"start": "electron-forge start",
|
||||
"package": "electron-forge package",
|
||||
|
||||
Reference in New Issue
Block a user