Build macOS Release #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 macOS Release | |
| on: | |
| workflow_dispatch: | |
| jobs: | |
| build-mac: | |
| runs-on: macos-latest | |
| defaults: | |
| run: | |
| working-directory: ./src | |
| steps: | |
| - name: Check out repository code | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20.10.0' | |
| - name: Install dependencies | |
| run: npm install | |
| - name: Build the Mac application | |
| run: npm run package:mac | |
| - name: Upload the finished Mac artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: macos-app-build | |
| path: | | |
| src/release/*.dmg | |
| src/release/*.zip | |
| src/release/latest-mac.yml | |
| retention-days: 5 |