diff --git a/.github/workflows/Build.yml b/.github/workflows/Build.yml deleted file mode 100644 index f7330f7..0000000 --- a/.github/workflows/Build.yml +++ /dev/null @@ -1,31 +0,0 @@ -name: Build - -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: Setup Node.js - uses: actions/setup-node@v4 - with: - node-version: '20' - - - name: Instalar dependencias - run: npm ci - - - name: Build - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: npm run build diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..26a7e59 --- /dev/null +++ b/.github/workflows/build.yml @@ -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 }}