Skip to content

πŸ—οΈ Build #62

πŸ—οΈ Build

πŸ—οΈ Build #62

Workflow file for this run

name: πŸ—οΈ Build
on:
workflow_dispatch:
inputs:
type:
description: 'Release type'
required: true
default: 'MINOR'
type: choice
options:
- MAJOR
- MINOR
- PATCH
jobs:
build:
name: Build
runs-on: windows-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup up PNPM
uses: pnpm/action-setup@v2
with:
version: 8
- name: Setup up Node 20
uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
- name: Install dependencies
run: pnpm install
- name: Increment version
uses: scomans/increment-version-action@v1
id: version-increment
with:
releaseType: ${{ github.event.inputs.type }}
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Update version
run: pnpm update-version ${{ steps.version-increment.outputs.newVersion }}
- name: πŸ—οΈ Build frontend
env:
NODE_OPTIONS: "--max_old_space_size=4096"
run: pnpm build frontend --configuration=production
- name: Install Rust stable
uses: dtolnay/rust-toolchain@stable
- name: Rust cache
id: rust-cache
uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
dist/apps/wrapper
key: rust-cache-${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: πŸ—οΈ Build Wrapper
env:
TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}
TAURI_KEY_PASSWORD: ""
run: pnpm build wrapper
- name: πŸš€ Deploy DevConsole
run: pnpm release