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 }}
|
||||
Reference in New Issue
Block a user