Skip to content

Release

Release #13

Workflow file for this run

name: Release
on:
release:
types: [published]
jobs:
release:
permissions:
contents: write
strategy:
fail-fast: false
matrix:
platform: [macos-latest, windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Rust setup
uses: dtolnay/rust-toolchain@stable
- name: Rust cache
uses: swatinem/rust-cache@v2
with:
workspaces: "./src-tauri -> target"
- name: Sync node version and setup cache
uses: actions/setup-node@v4
with:
node-version: "lts/*"
cache: "npm"
cache-dependency-path: ./app/package-lock.json
- name: Install frontend dependencies
run: npm install
working-directory: ./app
- name: Set optimization options
run: |
echo 'profile.release.lto = "true"' >> Cargo.toml
echo 'profile.release.panic = "abort"' >> Cargo.toml
- name: Build the app
uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tagName: ${{ github.event.release.tag_name }}
releaseName: "PLATEAU GIS Converter v__VERSION__"
releaseDraft: true
prerelease: false