Nora v3.1.0-stable Minor Update #155
This file contains 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 | |
on: | |
push: | |
branches: ['master'] | |
pull_request: | |
branches: ['master'] | |
env: | |
MAIN_VITE_MUSIXMATCH_DEFAULT_USER_TOKEN: ${{ secrets.MUSIXMATCH_DEFAULT_USER_TOKEN }} | |
MAIN_VITE_LAST_FM_API_KEY: ${{ secrets.LAST_FM_API_KEY }} | |
MAIN_VITE_GENIUS_API_KEY: ${{ secrets.GENIUS_API_KEY }} | |
MAIN_VITE_LAST_FM_SHARED_SECRET: ${{ secrets.LAST_FM_SHARED_SECRET }} | |
MAIN_VITE_ENCRYPTION_SECRET: ${{ secrets.ENCRYPTION_SECRET }} | |
MAIN_VITE_DISCORD_CLIENT_ID: ${{ secrets.DISCORD_CLIENT_ID }} | |
jobs: | |
release: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
steps: | |
- name: Check out Git repository | |
uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
check-latest: true | |
- name: Install Dependencies | |
run: npm ci | |
- name: Install correct Sharp Dependencies | |
if: matrix.os == 'ubuntu-latest' | |
run: npm install --cpu=x64 --os=linux sharp | |
- name: build-linux | |
if: matrix.os == 'ubuntu-latest' | |
run: npm run build:linux | |
- name: build-macos | |
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@v2 | |
with: | |
draft: true | |
name: Nora Release ${{ github.ref }} ${{ github.sha }} | |
files: | | |
dist/*.exe | |
dist/*.zip | |
dist/*.dmg | |
dist/*.AppImage | |
dist/*.snap | |
dist/*.deb | |
dist/*.rpm | |
dist/*.tar.gz | |
dist/*.yml | |
dist/*.blockmap | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |