dsr/.forgejo/workflows/release.yml
Mylloon 41b59d65b0
Some checks failed
Upload release / build (push) Has been cancelled
correctly attach assets
2025-04-24 21:33:10 +02:00

41 lines
866 B
YAML

name: Upload release
on:
push:
tags:
- "*"
jobs:
build:
runs-on: docker
container:
image: node
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install dependencies
run: |
apt-get update &&
apt-get install -y zip
- name: Build the app for Windows
run: |
npm install --platform=win32 &&
npm run make -- --platform=win32
- name: Clear the node packages
run: rm -rf node_modules/ package-lock.json
- name: Build the app for Linux
run: |
npm install --platform=linux &&
npm run make -- --platform=linux
- name: Create release
uses: akkuman/gitea-release-action@v1
with:
token: ${{ secrets.TOKEN }}
files: out/make/zip/**/*.zip
draft: true