-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
0 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |