ποΈ Build #62
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |