mirror of
https://github.com/luminous-devs/lume.git
synced 2024-10-01 09:21:07 +00:00
78 lines
2.6 KiB
YAML
78 lines
2.6 KiB
YAML
name: 'publish'
|
|
on:
|
|
push:
|
|
branches:
|
|
- release
|
|
|
|
env:
|
|
CARGO_INCREMENTAL: 0
|
|
RUST_BACKTRACE: short
|
|
RUSTFLAGS: '-W unreachable-pub -W rust-2021-compatibility'
|
|
|
|
jobs:
|
|
publish-tauri:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
settings:
|
|
- platform: 'macos-latest'
|
|
args: '--target universal-apple-darwin'
|
|
- platform: 'macos-latest'
|
|
args: '--target x86_64-apple-darwin'
|
|
- platform: 'macos-latest'
|
|
args: '--target aarch64-apple-darwin'
|
|
- platform: 'ubuntu-20.04'
|
|
args: ''
|
|
- platform: 'windows-latest'
|
|
args: '--target x86_64-pc-windows-msvc'
|
|
- platform: 'windows-latest'
|
|
args: '--target i686-pc-windows-msvc'
|
|
runs-on: ${{ matrix.settings.platform }}
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: setup node
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 18
|
|
- uses: dtolnay/rust-toolchain@stable
|
|
with:
|
|
targets: aarch64-apple-darwin
|
|
- name: install dependencies (ubuntu only)
|
|
if: matrix.settings.platform == 'ubuntu-20.04'
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y libgtk-3-dev webkit2gtk-4.0 libappindicator3-dev librsvg2-dev patchelf
|
|
- name: Install pnpm
|
|
uses: pnpm/action-setup@v2
|
|
with:
|
|
version: 7.x.x
|
|
run_install: false
|
|
- name: Setup node and cache for package data
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 'lts/*'
|
|
cache: 'pnpm'
|
|
cache-dependency-path: pnpm-lock.yaml
|
|
- uses: Swatinem/rust-cache@v2
|
|
with:
|
|
cache-on-failure: true
|
|
- run: pnpm install
|
|
- uses: tauri-apps/tauri-action@dev
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}
|
|
TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }}
|
|
ENABLE_CODE_SIGNING: ${{ secrets.APPLE_CERTIFICATE }}
|
|
APPLE_CERTIFICATE: ${{ secrets.APPLE_CERTIFICATE }}
|
|
APPLE_CERTIFICATE_PASSWORD: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }}
|
|
APPLE_SIGNING_IDENTITY: ${{ secrets.APPLE_SIGNING_IDENTITY }}
|
|
APPLE_ID: ${{ secrets.APPLE_ID }}
|
|
APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }}
|
|
with:
|
|
tagName: v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version
|
|
releaseName: 'App v__VERSION__'
|
|
releaseBody: 'See the assets to download this version and install.'
|
|
releaseDraft: true
|
|
prerelease: false
|
|
args: ${{ matrix.settings.args }}
|