45 lines
1.1 KiB
YAML
45 lines
1.1 KiB
YAML
name: "publish"
|
|
|
|
on: workflow_dispatch
|
|
|
|
jobs:
|
|
publish-tauri:
|
|
strategy:
|
|
matrix:
|
|
platform: [macos-latest, ubuntu-latest, windows-latest]
|
|
|
|
runs-on: ${{ matrix.platform }}
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Setup nodejs
|
|
uses: actions/setup-node@v2
|
|
with:
|
|
node-version: 16
|
|
cache: yarn
|
|
|
|
- name: Install Rust
|
|
uses: actions-rs/toolchain@v1
|
|
with:
|
|
toolchain: stable
|
|
|
|
- name: Install webkit2gtk
|
|
if: matrix.platform == 'ubuntu-latest'
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y webkit2gtk-4.0
|
|
|
|
- name: Install dependencies & Build
|
|
run: yarn && yarn build
|
|
|
|
# the action automatically replaces __VERSION__ with the app version
|
|
- name: Create Release
|
|
uses: tauri-apps/tauri-action@v0
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
with:
|
|
tagName: v__VERSION__
|
|
releaseName: "WBM Installer v__VERSION__"
|
|
releaseBody:
|
|
releaseDraft: true
|