Skip to content

Commit

Permalink
Update and rename Build.yml to build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
staFF6773 authored Nov 26, 2024
1 parent 66ac294 commit 063d560
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 31 deletions.
31 changes: 0 additions & 31 deletions .github/workflows/Build.yml

This file was deleted.

44 changes: 44 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Build and Release

on:
push:
tags:
- 'v*'

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

- name: Compilar para Windows
if: matrix.os == 'windows-latest'
run: npm run build:win
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

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

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

0 comments on commit 063d560

Please sign in to comment.