Release app #43
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
| # .github/workflows/release.yml | |
| name: Release app | |
| on: | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| jobs: | |
| build: | |
| strategy: | |
| matrix: | |
| os: | |
| [ | |
| # { name: 'linux', image: 'ubuntu-latest' }, | |
| { name: 'windows', image: 'windows-latest' }, | |
| # { name: 'macos-x64', image: 'macos-13' }, | |
| # { name: 'macos-arm64', image: 'macos-14' }, | |
| ] | |
| runs-on: ${{ matrix.os.image }} | |
| steps: | |
| - name: Github checkout | |
| uses: actions/checkout@v4 | |
| - name: Use Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| - name: Install WiX Toolset (Windows only) | |
| if: matrix.os.name == 'windows' | |
| run: | | |
| choco install wixtoolset | |
| echo "C:\Program Files (x86)\WiX Toolset v3.11\bin" >> $GITHUB_PATH | |
| - run: yarn install --frozen-lockfile | |
| - name: Publish app | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: npm run publish |