Merge branch 'develop' of https://github.com/debba/storytel-player in… #69
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 | |
| env: | |
| GH_TOKEN: ${{ SECRETS.GITHUB_TOKEN }} | |
| on: | |
| push: | |
| branches: | |
| - master | |
| defaults: | |
| run: | |
| shell: bash | |
| jobs: | |
| linux_x64: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out Git repository | |
| uses: actions/checkout@v4 | |
| - name: Install Node.js and NPM | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| - name: Build | |
| run: npm run install-all | |
| - name: Release | |
| if: contains(github.ref, 'master') | |
| run: npm run electron:dist:linux:x64 -- --publish always | |
| linux_arm64: | |
| needs: linux_x64 | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out Git repository | |
| uses: actions/checkout@v4 | |
| - name: Install Node.js and NPM | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| - name: Build | |
| run: npm run install-all | |
| - name: Release | |
| if: contains(github.ref, 'master') | |
| run: npm run electron:dist:linux:arm64 -- --publish always | |
| linux_arm: | |
| needs: linux_arm64 | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out Git repository | |
| uses: actions/checkout@v4 | |
| - name: Install Node.js and NPM | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| - name: Build | |
| run: npm run install-all | |
| - name: Release | |
| if: contains(github.ref, 'master') | |
| run: npm run electron:dist:linux:arm -- --publish always | |
| dmg: | |
| needs: linux_arm | |
| runs-on: macos-latest | |
| steps: | |
| - name: Check out Git repository | |
| uses: actions/checkout@v4 | |
| - name: Install Node.js and NPM | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| - name: Build | |
| run: npm run install-all | |
| - name: Release | |
| if: contains(github.ref, 'master') | |
| run: npm run electron:dist:mac:x64 -- --publish always | |
| exe: | |
| needs: dmg | |
| runs-on: windows-latest | |
| steps: | |
| - name: Check out Git repository | |
| uses: actions/checkout@v4 | |
| - name: Install Node.js and NPM | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| - name: Build | |
| run: npm run install-all | |
| - name: Release | |
| if: contains(github.ref, 'master') | |
| run: npm run electron:dist:win -- --publish always |