41 lines
866 B
YAML
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
|