Update electron-builder config #13
Workflow file for this run
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/release Marktext | |
| on: | |
| push: | |
| tags: | |
| - v*.*.* | |
| jobs: | |
| release: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, windows-latest] | |
| steps: | |
| - name: Check out Git repository | |
| uses: actions/checkout@v3 | |
| - name: Install Node.js | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: 22 | |
| - name: Install Linux Build Dependencies | |
| if: matrix.os == 'ubuntu-latest' | |
| run: sudo apt-get update && sudo apt-get install -y icnsutils graphicsmagick xz-utils libx11-dev libxkbfile-dev gnome-keyring libsecret-1-dev libfontconfig-dev rpm | |
| - name: Install Dependencies | |
| run: npm install | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: build-linux | |
| if: matrix.os == 'ubuntu-latest' | |
| run: npm run build:linux | |
| # Mac builds have been disabled due to a lack of a Developer ID to sign it | |
| # All builds by default will give a "this app is damaged and can't be opened" error | |
| # - name: build-mac | |
| # if: matrix.os == 'macos-latest' | |
| # run: npm run build:mac | |
| - name: build-win | |
| if: matrix.os == 'windows-latest' | |
| run: npm run build:win | |
| - name: release | |
| uses: softprops/action-gh-release@v1 | |
| with: | |
| draft: true | |
| files: | | |
| dist/*.exe | |
| dist/*.zip | |
| dist/*.dmg | |
| dist/*.AppImage | |
| dist/*.snap | |
| dist/*.deb | |
| dist/*.rpm | |
| dist/*.tar.gz | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |