lume/.github/workflows/main.yml

69 lines
2.4 KiB
YAML
Raw Normal View History

2023-09-03 04:08:13 +00:00
name: 'Publish'
2023-08-19 08:27:10 +00:00
on: workflow_dispatch
2023-03-28 03:51:18 +00:00
2023-03-31 13:12:06 +00:00
env:
CARGO_INCREMENTAL: 0
RUST_BACKTRACE: short
RUSTFLAGS: '-W unreachable-pub -W rust-2021-compatibility'
2023-03-28 03:51:18 +00:00
jobs:
publish-tauri:
strategy:
fail-fast: false
matrix:
2023-03-31 13:12:06 +00:00
settings:
- platform: 'macos-latest'
args: '--target universal-apple-darwin'
2023-09-03 04:08:13 +00:00
- platform: 'ubuntu-20.04'
2023-03-31 13:12:06 +00:00
args: ''
- platform: 'windows-latest'
args: '--target x86_64-pc-windows-msvc'
runs-on: ${{ matrix.settings.platform }}
2023-03-28 03:51:18 +00:00
steps:
- uses: actions/checkout@v3
- name: setup node
uses: actions/setup-node@v3
with:
2023-09-03 04:08:13 +00:00
node-version: 16
2023-03-31 13:12:06 +00:00
- uses: dtolnay/rust-toolchain@stable
2023-03-28 04:20:56 +00:00
with:
2023-03-31 13:12:06 +00:00
targets: aarch64-apple-darwin
2023-03-28 03:51:18 +00:00
- name: install dependencies (ubuntu only)
2023-08-13 07:31:10 +00:00
if: matrix.settings.platform == 'ubuntu-22.04'
2023-03-28 03:51:18 +00:00
run: |
sudo apt-get update
2023-09-03 04:08:13 +00:00
sudo apt-get install -y librsvg2-dev libayatana-appindicator3-dev libssl-dev libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf
2023-03-31 13:12:06 +00:00
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
2023-08-13 05:03:00 +00:00
version: 8.x.x
2023-03-31 13:12:06 +00:00
run_install: false
- name: Setup node and cache for package data
uses: actions/setup-node@v3
with:
node-version: 'lts/*'
cache: 'pnpm'
2023-03-31 13:27:22 +00:00
cache-dependency-path: pnpm-lock.yaml
2023-03-31 13:12:06 +00:00
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
2023-03-31 13:27:22 +00:00
- run: pnpm install
2023-04-01 01:20:13 +00:00
- uses: tauri-apps/tauri-action@dev
2023-03-28 03:51:18 +00:00
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2023-07-05 02:03:39 +00:00
TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}
TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }}
2023-07-07 04:31:34 +00:00
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 }}
2023-03-28 03:51:18 +00:00
with:
2023-08-13 05:03:00 +00:00
tagName: v__VERSION__
2023-03-28 03:51:18 +00:00
releaseName: 'App v__VERSION__'
releaseBody: 'See the assets to download this version and install.'
releaseDraft: true
prerelease: false
2023-03-31 13:12:06 +00:00
args: ${{ matrix.settings.args }}