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 d0bc296 commit 00918f0
Showing 1 changed file with 0 additions and 55 deletions.
55 changes: 0 additions & 55 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,56 +1 @@
name: Build and Release

on:
push:
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:
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]

steps:
- name: Checkout código
uses: actions/checkout@v4

- name: Configurar Node.js
uses: actions/setup-node@v4
with:
node-version: '18'

- name: Instalar dependencias
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:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

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

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

0 comments on commit 00918f0

Please sign in to comment.