add automatic build (#7)
This commit is contained in:
parent
04b4138b46
commit
0b85415c1d
1 changed files with 27 additions and 0 deletions
27
.forgejo/workflows/release.yml
Normal file
27
.forgejo/workflows/release.yml
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
name: Upload release
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- "*"
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: |
|
||||||
|
npm install --platform=win32 &&
|
||||||
|
apt-get update &&
|
||||||
|
apt-get install -y zip
|
||||||
|
|
||||||
|
- name: Build the app
|
||||||
|
run: npm run make -- --platform=win32
|
||||||
|
|
||||||
|
- name: Create release
|
||||||
|
uses: akkuman/gitea-release-action@v1
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.TOKEN }}
|
||||||
|
files: out/make/zip/win32/x64/dsr-win32-x64-${{ github.ref_name }}.zip
|
Loading…
Reference in a new issue