This commit is contained in:
26
.gitea/workflows/build.yaml
Normal file
26
.gitea/workflows/build.yaml
Normal file
@@ -0,0 +1,26 @@
|
||||
name: Release Electron App
|
||||
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
|
||||
|
||||
jobs:
|
||||
release-desktop:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: electronuserland/builder:wine
|
||||
|
||||
steps:
|
||||
- name: Checkout Code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- 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
|
||||
env:
|
||||
# Gitea Actions automatically generates this token for you during the run!
|
||||
GITEA_TOKEN: ${{ gitea.token }}
|
||||
11
package.json
11
package.json
@@ -5,6 +5,17 @@
|
||||
"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