chore: build Tauri on release and commit and upload artifacts

This commit is contained in:
Fernando Fernández 2022-05-23 15:29:49 +02:00
parent e2feaa09cd
commit 640c128ac2
2 changed files with 124 additions and 0 deletions

View File

@ -65,3 +65,65 @@ jobs:
jellyfin/jellyfin-vue:stable-rc.${{ github.event.release.tag_name }}
ghcr.io/jellyfin/jellyfin-vue:stable-rc
ghcr.io/jellyfin/jellyfin-vue:stable-rc.${{ github.event.release.tag_name }}
tauri:
name: Tauri 🛠️
strategy:
fail-fast: false
matrix:
platform:
- 'macos-latest'
- 'ubuntu-latest'
- 'windows-latest'
runs-on: ${{ matrix.platform }}
steps:
- name: Checkout ⬇️
uses: actions/checkout@v3.0.2
- name: Setup node environment ⚙️
uses: actions/setup-node@v3.2.0
with:
node-version: 16
cache: 'npm'
check-latest: true
- name: Install dependencies 📦
run: npm ci --no-audit -w tauri
- name: Install webkit2gtk (ubuntu only)
if: matrix.platform == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install -y webkit2gtk-4.0
- name: Generate Tauri icons 🖌️
run: 'npm run tauri:icon -w tauri'
- name: Build Tauri 🛠️
run: 'npm run tauri:build -w tauri'
- name: Upload artifact (Linux) ⬆️🐧
uses: actions/upload-artifact@v3.1.0
if: matrix.platform == 'ubuntu-latest'
with:
name: jellyfin-vue_linux-amd64
path: |
tauri/target/release/bundle/deb/*.deb
tauri/target/release/bundle/appimage_deb
- name: Upload artifact (MacOS) ⬆️🍎
uses: actions/upload-artifact@v3.1.0
if: matrix.platform == 'macos-latest'
with:
name: jellyfin-vue_macOS
path: |
tauri/target/release/bundle/macos
tauri/target/release/bundle/dmg/*.dmg
- name: Upload artifact (Windows) ⬆️🪟
uses: actions/upload-artifact@v3.1.0
if: matrix.platform == 'windows-latest'
with:
name: jellyfin-vue_windows_amd64
path: tauri/target/release/jellyfin-vue.exe

View File

@ -52,3 +52,65 @@ jobs:
jellyfin/jellyfin-vue:unstable.${{ steps.date.outputs.date }}.${{ steps.sha.outputs.sha }}
ghcr.io/jellyfin/jellyfin-vue:unstable
ghcr.io/jellyfin/jellyfin-vue:unstable.${{ steps.date.outputs.date }}.${{ steps.sha.outputs.sha }}
tauri:
name: Tauri 🛠️
strategy:
fail-fast: false
matrix:
platform:
- 'macos-latest'
- 'ubuntu-latest'
- 'windows-latest'
runs-on: ${{ matrix.platform }}
steps:
- name: Checkout ⬇️
uses: actions/checkout@v3.0.2
- name: Setup node environment ⚙️
uses: actions/setup-node@v3.2.0
with:
node-version: 16
cache: 'npm'
check-latest: true
- name: Install dependencies 📦
run: npm ci --no-audit -w tauri
- name: Install webkit2gtk (ubuntu only)
if: matrix.platform == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install -y webkit2gtk-4.0
- name: Generate Tauri icons 🖌️
run: 'npm run tauri:icon -w tauri'
- name: Build Tauri 🛠️
run: 'npm run tauri:build -w tauri'
- name: Upload artifact (Linux) ⬆️🐧
uses: actions/upload-artifact@v3.1.0
if: matrix.platform == 'ubuntu-latest'
with:
name: jellyfin-vue_linux-amd64
path: |
tauri/target/release/bundle/deb/*.deb
tauri/target/release/bundle/appimage_deb
- name: Upload artifact (MacOS) ⬆️🍎
uses: actions/upload-artifact@v3.1.0
if: matrix.platform == 'macos-latest'
with:
name: jellyfin-vue_macOS
path: |
tauri/target/release/bundle/macos
tauri/target/release/bundle/dmg/*.dmg
- name: Upload artifact (Windows) ⬆️🪟
uses: actions/upload-artifact@v3.1.0
if: matrix.platform == 'windows-latest'
with:
name: jellyfin-vue_windows_amd64
path: tauri/target/release/jellyfin-vue.exe