Skip to content

Build

Build #45

Workflow file for this run

name: 'Publish'
on:
push:
tags:
- 'v*'
workflow_dispatch:
jobs:
publish-tauri:
permissions:
contents: write
strategy:
fail-fast: false
matrix:
include:
# - platform: macos-latest
# target: x86_64-apple-darwin
# bundles: app,dmg
# - platform: macos-latest
# target: aarch64-apple-darwin
# bundles: app,dmg
- platform: 'ubuntu-22.04'
target: x86_64-unknown-linux-gnu
bundles: appimage,deb
# - platform: 'windows-latest'
# args: ''
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
with:
version: 9
run_install: true
- name: install Rust stable
uses: dtolnay/rust-toolchain@stable
- name: install dependencies (ubuntu only)
if: matrix.platform == 'ubuntu-22.04' # This must match the platform value defined above.
run: |
sudo apt-get update
sudo apt-get install -y libwebkit2gtk-4.0-dev libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
- name: tauri build
id: tauri-build
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}
run: |
pnpm tauri build --ci -v --target ${{ matrix.target }} --bundles ${{ matrix.bundles }},updater
- name: upload artifacts
uses: actions/upload-artifact@v4
with:
path: |
./src-tauri/target/${{ matrix.target }}/release/bundle/appimage/*.AppImage
./src-tauri/target/${{ matrix.target }}/release/bundle/appimage/*.AppImage.tar.gz.sig
./src-tauri/target/${{ matrix.target }}/release/bundle/deb/*.deb
# - name: code signing
# id: code-signing
# if: matrix.platform == 'windows-latest'
# uses: signpath/[email protected]
# with:
# api-token: '${{ secrets.SIGNPATH_API_TOKEN }}'
# organization-id: '5f88bd6d-9f02-4053-af25-77474c4957e8'
# project-slug: 'broadcaster'
# signing-policy-slug: 'test-signing'
# github-artifact-name: 'Lichess Broadcaster_${{ steps.tauri-build.outputs.appVersion }}_x64_en-US.msi'
# wait-for-completion: true
# output-artifact-directory: 'org/content'
# - name: upload signed artifacts
# if: matrix.platform == 'windows-latest'
# run: |
# gh release upload v${{ steps.tauri-build.outputs.appVersion }} ${{ steps.set-filenames.outputs.MSI_FILEPATH }}
# gh release upload v${{ steps.tauri-build.outputs.appVersion }} ${{ steps.set-filenames.outputs.EXE_FILEPATH }}
# - name: publish release
# if: matrix.platform == 'windows-latest'
# run: |
# gh release edit v${{ steps.taurauri-build.outputs.appVersion }} --draft false --latest
# gh release view v${{ steps.taurauri-build.outputs.appVersion }}