a ver si de esta compila [RELEASE] #3
This file contains hidden or 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
| name: Release | |
| on: | |
| push: | |
| branches: | |
| - master | |
| - main | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| if: contains(github.event.head_commit.message, '[RELEASE]') | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Checkout Code | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| cache: 'npm' | |
| - name: Install System Dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y libudev-dev libusb-1.0-0-dev build-essential | |
| - name: Install Dependencies | |
| run: npm install | |
| - name: Build Application | |
| run: | | |
| npm run build:frontend | |
| npm run build:electron | |
| - name: Build and Publish | |
| uses: samuelmeuli/action-electron-builder@v1 | |
| with: | |
| github_token: ${{ secrets.github_token }} | |
| release: true | |
| args: "--linux --x64 --arm64" |