mirror of
https://github.com/tauri-apps/tauri-action.git
synced 2026-01-31 00:35:20 +01:00
49 lines
1.2 KiB
YAML
49 lines
1.2 KiB
YAML
name: "test-action"
|
|
on:
|
|
push:
|
|
branches: [dev]
|
|
|
|
jobs:
|
|
build:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
platform: [ubuntu-latest, macos-latest, windows-latest]
|
|
|
|
runs-on: ${{ matrix.platform }}
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: setup node
|
|
uses: actions/setup-node@v1
|
|
with:
|
|
node-version: 12
|
|
- name: install Rust stable
|
|
uses: actions-rs/toolchain@v1
|
|
with:
|
|
toolchain: stable
|
|
- name: install tauri bundler
|
|
run: cargo install tauri-bundler --force
|
|
- name: install webkit2gtk (ubuntu only)
|
|
if: matrix.platform == 'ubuntu-latest'
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y webkit2gtk-4.0
|
|
- name: build action
|
|
run: |
|
|
yarn
|
|
yarn build
|
|
- name: install example dependencies
|
|
run: yarn
|
|
working-directory: ./example
|
|
- uses: ./
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
with:
|
|
projectPath: ./example
|
|
iconPath: ./icon.png
|
|
tagName: example-v__VERSION__
|
|
releaseName: "Release example app v__VERSION__"
|
|
releaseBody: "See the assets to download this version and install."
|
|
releaseDraft: true
|
|
prerelease: false
|