Build mac #2
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: Build mac | |
| on: | |
| workflow_dispatch: | |
| jobs: | |
| build-electron: | |
| runs-on: macos-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Install Node.js and npm via Homebrew | |
| run: | | |
| brew update | |
| brew install node | |
| node -v | |
| npm -v | |
| - name: Install build tools | |
| run: | | |
| npm install --global electron-builder | |
| - name: Build | |
| run: | | |
| npm install | |
| npm run build:mac -- --publish=never | |
| env: | |
| GH_TOKEN: "" | |
| - name: Upload release folder | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: pvzge-mac-release | |
| path: release/ |