Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
staFF6773 authored Nov 26, 2024
1 parent 063d560 commit d0bc296
Showing 1 changed file with 19 additions and 7 deletions.
26 changes: 19 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@ name: Build and Release

on:
push:
tags:
- 'v*'
branches: [ "main" ] # Agregamos trigger en push a main
tags: [ 'v*' ]
workflow_dispatch: # Permite ejecutar el workflow manualmente

permissions:
contents: write # Agregamos permisos explícitos

jobs:
release:
Expand All @@ -23,22 +27,30 @@ jobs:
node-version: '18'

- name: Instalar dependencias
run: npm install

run: |
npm install
npm install -g electron-builder
- name: Instalar dependencias de Linux
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install -y libarchive-tools
- name: Compilar para Windows
if: matrix.os == 'windows-latest'
run: npm run build:win
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Compilar para macOS
if: matrix.os == 'macos-latest'
run: npm run build:mac
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Compilar para Linux
if: matrix.os == 'ubuntu-latest'
run: npm run build:linux
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit d0bc296

Please sign in to comment.